summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-13 18:49:53 (GMT)
committerFred Drake <fdrake@acm.org>2000-06-13 18:49:53 (GMT)
commit414ca6666ccbf5ac2caac0f60c07b686d03cda49 (patch)
tree3e970410650f87394d07b3706ad68ac5c66e4789 /Lib
parentf6b5374ecf8a2a95f8764d4cfbda2dd5977d8f6e (diff)
downloadcpython-414ca6666ccbf5ac2caac0f60c07b686d03cda49.zip
cpython-414ca6666ccbf5ac2caac0f60c07b686d03cda49.tar.gz
cpython-414ca6666ccbf5ac2caac0f60c07b686d03cda49.tar.bz2
James C. Ahlstron <jim@interet.com>:
Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/zipfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 7659ce4..dfcf72f 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -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: