##// END OF EJS Templates
gzip: rename the argument to `mtime` to match upstream python...
marmoute -
r44980:6c36a521 stable
parent child Browse files
Show More
@@ -138,8 +138,8 b' class tarit(object):'
138 138 class GzipFileWithTime(gzip.GzipFile):
139 139 def __init__(self, *args, **kw):
140 140 timestamp = None
141 if 'timestamp' in kw:
142 timestamp = kw.pop('timestamp')
141 if 'mtime' in kw:
142 timestamp = kw.pop('mtime')
143 143 if timestamp is None:
144 144 self.timestamp = time.time()
145 145 else:
@@ -178,7 +178,7 b' class tarit(object):'
178 178 pycompat.sysstr(mode + b'b'),
179 179 zlib.Z_BEST_COMPRESSION,
180 180 fileobj,
181 timestamp=mtime,
181 mtime=mtime,
182 182 )
183 183 self.fileobj = gzfileobj
184 184 return tarfile.TarFile.taropen( # pytype: disable=attribute-error
General Comments 0
You need to be logged in to leave comments. Login now