aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2021-05-03 00:07:12 -0400
committerJosh Matthews <josh@joshmatthews.net>2021-05-03 00:07:12 -0400
commit8d0320de75f69550b78ca8000d7f928d9936b343 (patch)
tree4c2655483ba12ef795640f8f3c3d8f58c440cfd5 /python/servo/command_base.py
parent2985d48b773c25910b20f6201e99ed2240a46a55 (diff)
downloadservo-8d0320de75f69550b78ca8000d7f928d9936b343.tar.gz
servo-8d0320de75f69550b78ca8000d7f928d9936b343.zip
Fix deprecated gzipfile constructor argument.
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