diff options
author | bors-servo <servo-ops@mozilla.com> | 2021-05-03 00:08:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 00:08:41 -0400 |
commit | 5245f9ff272586875e1c1b849ae096228ea306a8 (patch) | |
tree | 4e8b8ee74c0ec6453de96494548eb5b4598dfb1d /python/servo/command_base.py | |
parent | c289ed5b5e83ad8e80235c148a4600717a37f085 (diff) | |
parent | a2356ef105cafa2be9ff91bc224e6408ee3f5beb (diff) | |
download | servo-5245f9ff272586875e1c1b849ae096228ea306a8.tar.gz servo-5245f9ff272586875e1c1b849ae096228ea306a8.zip |
Auto merge of #28408 - jdm:pyfixes, r=jdm
Python3 fixes
Fixes #28363.
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 1a5cc75e746..7b4fd6ab544 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -120,7 +120,7 @@ def archive_deterministically(dir_to_archive, dest_archive, prepend_path=None): arcname = os.path.normpath(os.path.join(prepend_path, arcname)) zip_file.write(entry, arcname=arcname) else: - with gzip.GzipFile('wb', fileobj=out_file, mtime=0) as gzip_file: + with gzip.GzipFile(mode='wb', fileobj=out_file, mtime=0) as gzip_file: with tarfile.open(fileobj=gzip_file, mode='w:') as tar_file: for entry in file_list: arcname = entry |