diff options
author | Guido van Rossum <guido@python.org> | 2002-08-12 15:15:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-12 15:15:51 (GMT) |
commit | 1ae4c3d0d8177306a899a083cfe55cc3192eaaa4 (patch) | |
tree | 11ba3ffee658a7ed56a9d77fe1b762f67c09d809 /Lib/zipfile.py | |
parent | 738eda742cd17739d65594b557fba442f65ff18a (diff) | |
download | cpython-1ae4c3d0d8177306a899a083cfe55cc3192eaaa4.zip cpython-1ae4c3d0d8177306a899a083cfe55cc3192eaaa4.tar.gz cpython-1ae4c3d0d8177306a899a083cfe55cc3192eaaa4.tar.bz2 |
Avoid warnings about <<. external_attr is now an unsigned long.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 5c1c229..2df16ba 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -25,7 +25,7 @@ ZIP_DEFLATED = 8 # Here are some struct module formats for reading headers structEndArchive = "<4s4H2lH" # 9 items, end of archive, 22 bytes stringEndArchive = "PK\005\006" # magic number for end of archive record -structCentralDir = "<4s4B4H3l5H2l"# 19 items, central directory, 46 bytes +structCentralDir = "<4s4B4H3l5HLl"# 19 items, central directory, 46 bytes stringCentralDir = "PK\001\002" # magic number for central directory structFileHeader = "<4s2B4H3l2H" # 12 items, file header record, 30 bytes stringFileHeader = "PK\003\004" # magic number for file header @@ -373,7 +373,7 @@ class ZipFile: zinfo = ZipInfo(filename, date_time) else: zinfo = ZipInfo(arcname, date_time) - zinfo.external_attr = st[0] << 16 # Unix attributes + zinfo.external_attr = st[0] << 16L # Unix attributes if compress_type is None: zinfo.compress_type = self.compression else: |