Skip to content

Commit

Permalink
Update this octal literal to be Python3 compatible.
Browse files Browse the repository at this point in the history
The `"0" 1*digits` syntax is gone in Python 3. This syntax replaced it.
It was ported into Python 2 at 2.6[1].

[1]: https://docs.python.org/2/whatsnew/2.6.html
  • Loading branch information
thanatos committed Feb 27, 2016
1 parent b965e83 commit 19b93ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letsencrypt/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def new_lineage(cls, lineagename, cert, privkey, chain, cli_config):
for i in (cli_config.renewal_configs_dir, cli_config.archive_dir,
cli_config.live_dir):
if not os.path.exists(i):
os.makedirs(i, 0700)
os.makedirs(i, 0o700)
logger.debug("Creating directory %s.", i)
config_file, config_filename = le_util.unique_lineage_name(
cli_config.renewal_configs_dir, lineagename)
Expand Down

0 comments on commit 19b93ec

Please sign in to comment.