diff options
author | Guido van Rossum <guido@python.org> | 2007-05-22 18:01:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-22 18:01:30 (GMT) |
commit | dc19f0966195c711407cb710225cab55ba1f4be9 (patch) | |
tree | c1c2a0ffeb93d8559d888f8b79016ce917100f39 /Lib/zipfile.py | |
parent | c49ebc0d07f47336b3720e546876d0f799ef0f50 (diff) | |
download | cpython-dc19f0966195c711407cb710225cab55ba1f4be9.zip cpython-dc19f0966195c711407cb710225cab55ba1f4be9.tar.gz cpython-dc19f0966195c711407cb710225cab55ba1f4be9.tar.bz2 |
There's no need to default file to sys.stdout -- print(file=None) already
selects sys.stdout.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 6cff722..2fb1ea5 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -711,8 +711,6 @@ class ZipFile: 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: |