Skip to content

Commit

Permalink
Use octal literal syntax compatible with Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
marmeladema committed Oct 15, 2019
1 parent 02cfb4f commit 6c813d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/servo/command_base.py
Expand Up @@ -107,7 +107,7 @@ def reset(tarinfo):
# packaging (in case of exceptional situations like running out of disk space).
# TODO do this in a temporary folder after #11983 is fixed
temp_file = '{}.temp~'.format(dest_archive)
with os.fdopen(os.open(temp_file, os.O_WRONLY | os.O_CREAT, 0644), 'w') as out_file:
with os.fdopen(os.open(temp_file, os.O_WRONLY | os.O_CREAT, 0o644), 'w') as out_file:
if dest_archive.endswith('.zip'):
with zipfile.ZipFile(temp_file, 'w', zipfile.ZIP_DEFLATED) as zip_file:
for entry in file_list:
Expand Down

0 comments on commit 6c813d0

Please sign in to comment.