]> jfr.im git - irc/weechat/qweechat.git/blobdiff - src/qweechat/config.py
Use prefix "0o" for octal number
[irc/weechat/qweechat.git] / 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)