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

View file

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