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

selects sys.stdout.
This commit is contained in:
Guido van Rossum 2007-05-22 18:01:30 +00:00
parent c49ebc0d07
commit dc19f09661
1 changed files with 0 additions and 2 deletions

View File

@ -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: