Show More
@@ -138,8 +138,8 b' class tarit(object):' | |||||
138 | class GzipFileWithTime(gzip.GzipFile): |
|
138 | class GzipFileWithTime(gzip.GzipFile): | |
139 | def __init__(self, *args, **kw): |
|
139 | def __init__(self, *args, **kw): | |
140 | timestamp = None |
|
140 | timestamp = None | |
141 |
if 'time |
|
141 | if 'mtime' in kw: | |
142 |
timestamp = kw.pop('time |
|
142 | timestamp = kw.pop('mtime') | |
143 | if timestamp is None: |
|
143 | if timestamp is None: | |
144 | self.timestamp = time.time() |
|
144 | self.timestamp = time.time() | |
145 | else: |
|
145 | else: | |
@@ -178,7 +178,7 b' class tarit(object):' | |||||
178 | pycompat.sysstr(mode + b'b'), |
|
178 | pycompat.sysstr(mode + b'b'), | |
179 | zlib.Z_BEST_COMPRESSION, |
|
179 | zlib.Z_BEST_COMPRESSION, | |
180 | fileobj, |
|
180 | fileobj, | |
181 |
time |
|
181 | mtime=mtime, | |
182 | ) |
|
182 | ) | |
183 | self.fileobj = gzfileobj |
|
183 | self.fileobj = gzfileobj | |
184 | return tarfile.TarFile.taropen( # pytype: disable=attribute-error |
|
184 | return tarfile.TarFile.taropen( # pytype: disable=attribute-error |
General Comments 0
You need to be logged in to leave comments.
Login now