Use prefix "0o" for octal number

This commit is contained in:
Sebastien Helleu 2011-12-24 12:29:05 +01:00
parent 15380bcecd
commit 35125a392d
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def read():
def write(config):
"""Write config file."""
if not os.path.exists(CONFIG_DIR):
os.mkdir(CONFIG_DIR, 0755)
os.mkdir(CONFIG_DIR, 0o0755)
with open(CONFIG_FILENAME, 'wb') as cfg:
config.write(cfg)