Its 0o not 0c to make an octal number

Change-Id: Ifa2fe70bbb170d2a9cffad5a5280dfa74b59230a
This commit is contained in:
Clark Boylan 2015-03-11 14:22:34 -07:00
parent eb5c691571
commit 226adc7f23
1 changed files with 1 additions and 1 deletions

View File

@ -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'))