Commit dc19f096 authored by Guido van Rossum's avatar Guido van Rossum

There's no need to default file to sys.stdout -- print(file=None) already

selects sys.stdout.
parent c49ebc0d
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment