aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2021-05-03 00:08:41 -0400
committerGitHub <noreply@github.com>2021-05-03 00:08:41 -0400
commit5245f9ff272586875e1c1b849ae096228ea306a8 (patch)
tree4e8b8ee74c0ec6453de96494548eb5b4598dfb1d /python/servo/command_base.py
parentc289ed5b5e83ad8e80235c148a4600717a37f085 (diff)
parenta2356ef105cafa2be9ff91bc224e6408ee3f5beb (diff)
downloadservo-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.py2
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