mirror of https://github.com/python/cpython
James C. Ahlstron <jim@interet.com>:
Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
This commit is contained in:
parent
f6b5374ecf
commit
414ca6666c
|
@ -166,7 +166,7 @@ class ZipFile:
|
|||
x.volume, x.internal_attr, x.external_attr = centdir[15:18]
|
||||
# Convert date/time code to (year, month, day, hour, min, sec)
|
||||
x.date_time = ( (d>>9)+1980, (d>>5)&0xF, d&0x1F,
|
||||
t>>11, (t>>5)&0x3F, t&0x1F * 2 )
|
||||
t>>11, (t>>5)&0x3F, (t&0x1F) * 2 )
|
||||
self.filelist.append(x)
|
||||
self.NameToInfo[x.filename] = x
|
||||
if self.debug > 2:
|
||||
|
|
Loading…
Reference in New Issue