[Python-3000-checkins] r55513 - python/branches/py3k-struni/Lib/zipfile.py
guido.van.rossum
python-3000-checkins at python.org
Tue May 22 20:01:33 CEST 2007
Author: guido.van.rossum
Date: Tue May 22 20:01:30 2007
New Revision: 55513
Modified:
python/branches/py3k-struni/Lib/zipfile.py
Log:
There's no need to default file to sys.stdout -- print(file=None) already
selects sys.stdout.
Modified: python/branches/py3k-struni/Lib/zipfile.py
==============================================================================
--- python/branches/py3k-struni/Lib/zipfile.py (original)
+++ python/branches/py3k-struni/Lib/zipfile.py Tue May 22 20:01:30 2007
@@ -711,8 +711,6 @@
def printdir(self, file=None):
"""Print a table of contents for the zip file."""
- if file is None:
- file = sys.stdout
print("%-46s %19s %12s" % ("File Name", "Modified ", "Size"),
file=file)
for zinfo in self.filelist:
More information about the Python-3000-checkins
mailing list