Its 0o not 0c to make an octal number
Change-Id: Ifa2fe70bbb170d2a9cffad5a5280dfa74b59230a
This commit is contained in:
parent
eb5c691571
commit
226adc7f23
|
@ -91,7 +91,7 @@ def _write_structured_data(basedir, basename, data):
|
|||
# Ensure filepath?
|
||||
file_path = os.path.join(basedir, "{0}.json".format(basename))
|
||||
with os.fdopen(
|
||||
os.open(file_path, os.O_CREAT | os.O_WRONLY, 0c600),
|
||||
os.open(file_path, os.O_CREAT | os.O_WRONLY, 0o600),
|
||||
'w') as out_file:
|
||||
out_file.write(json.dumps(data).encode('utf8'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue