Commit 3ccd2569 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[config] Fix open mode syntax

parent 512b32a7
......@@ -254,7 +254,7 @@ class Configuration(object):
c = self.__config_file()
dirname = os.path.dirname(c)
if not os.path.exists(dirname): os.makedirs(dirname)
with os.fdopen(, os.O_WRONLY | os.O_CREAT, 0600), 'wt') as f:
with os.fdopen(, os.O_WRONLY | os.O_CREAT, 0o600), 'wt') as f:
simplejson.dump(self.__data, f, indent=4)
def _is_valid_key(self, key):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment