summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-09-25 21:35:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-09-25 21:35:24 (GMT)
commitaf30d2eeaabfb184ed0869135c18e0fb17bc6fce (patch)
treeee77ff22614286ed886cefba66a9270c2567b02b /Lib/zipfile.py
parent9abfc457e0b7cd79c848943d5dde604668dfe06d (diff)
downloadcpython-af30d2eeaabfb184ed0869135c18e0fb17bc6fce.zip
cpython-af30d2eeaabfb184ed0869135c18e0fb17bc6fce.tar.gz
cpython-af30d2eeaabfb184ed0869135c18e0fb17bc6fce.tar.bz2
fix print statement
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py29
1 files changed, 14 insertions, 15 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 79ec333..79ca152 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -1191,22 +1191,21 @@ class ZipFile:
try:
filename, flag_bits = zinfo._encodeFilenameFlags()
centdir = struct.pack(structCentralDir,
- stringCentralDir, create_version,
- zinfo.create_system, extract_version, zinfo.reserved,
- flag_bits, zinfo.compress_type, dostime, dosdate,
- zinfo.CRC, compress_size, file_size,
- len(filename), len(extra_data), len(zinfo.comment),
- 0, zinfo.internal_attr, zinfo.external_attr,
- header_offset)
+ stringCentralDir, create_version,
+ zinfo.create_system, extract_version, zinfo.reserved,
+ flag_bits, zinfo.compress_type, dostime, dosdate,
+ zinfo.CRC, compress_size, file_size,
+ len(filename), len(extra_data), len(zinfo.comment),
+ 0, zinfo.internal_attr, zinfo.external_attr,
+ header_offset)
except DeprecationWarning:
- print >>sys.stderr, (structCentralDir,
- stringCentralDir, create_version,
- zinfo.create_system, extract_version, zinfo.reserved,
- zinfo.flag_bits, zinfo.compress_type, dostime, dosdate,
- zinfo.CRC, compress_size, file_size,
- len(zinfo.filename), len(extra_data), len(zinfo.comment),
- 0, zinfo.internal_attr, zinfo.external_attr,
- header_offset)
+ print((structCentralDir, stringCentralDir, create_version,
+ zinfo.create_system, extract_version, zinfo.reserved,
+ zinfo.flag_bits, zinfo.compress_type, dostime, dosdate,
+ zinfo.CRC, compress_size, file_size,
+ len(zinfo.filename), len(extra_data), len(zinfo.comment),
+ 0, zinfo.internal_attr, zinfo.external_attr,
+ header_offset), file=sys.stderr)
raise
self.fp.write(centdir)
self.fp.write(filename)