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 'time |
|
|
142 |
timestamp = kw.pop('time |
|
|
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 |
time |
|
|
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