]> granicus.if.org Git - python/commitdiff
James C. Ahlstron <jim@interet.com>:
authorFred Drake <fdrake@acm.org>
Tue, 13 Jun 2000 18:49:53 +0000 (18:49 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 13 Jun 2000 18:49:53 +0000 (18:49 +0000)
Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.

Lib/zipfile.py

index 7659ce4333109f12c271bcb7f0eeb749619daba4..dfcf72f53201c7eecd6d97c9b96bf30826e73e0d 100644 (file)
@@ -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: