mirror of
https://github.com/servo/servo.git
synced 2025-06-29 03:23:41 +01:00
Fix deprecated gzipfile constructor argument.
This commit is contained in:
parent
2985d48b77
commit
8d0320de75
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue