diff options
author | marmeladema <xademax@gmail.com> | 2019-10-14 00:42:55 +0100 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-10-16 00:22:07 +0100 |
commit | 6c813d073ca4099cf2207dae02a7a1594b8d2be1 (patch) | |
tree | 69c7ae8693e549f6c15004657f8b5393f04745bc /python/servo/command_base.py | |
parent | 02cfb4f49e070fc51c04d5d1f7092ae3ca4621bc (diff) | |
download | servo-6c813d073ca4099cf2207dae02a7a1594b8d2be1.tar.gz servo-6c813d073ca4099cf2207dae02a7a1594b8d2be1.zip |
Use octal literal syntax compatible with Python3
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 176ecd89e48..64d6ca242f7 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -107,7 +107,7 @@ def archive_deterministically(dir_to_archive, dest_archive, prepend_path=None): # 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: |