]> jfr.im git - irc/weechat/qweechat.git/commitdiff
Use prefix "0o" for octal number
authorSebastien Helleu <redacted>
Sat, 24 Dec 2011 11:29:05 +0000 (12:29 +0100)
committerSebastien Helleu <redacted>
Sat, 24 Dec 2011 11:29:05 +0000 (12:29 +0100)
src/qweechat/config.py

index 0dc36351c28f8e738d8f534e89f6ffa20899e338..59359068e324e746b50f63234bc7e7eaaff5d288 100644 (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)