There's no need to default file to sys.stdout -- print(file=None) already
selects sys.stdout.
This commit is contained in:
parent
c49ebc0d07
commit
dc19f09661
|
@ -711,8 +711,6 @@ class ZipFile:
|
||||||
|
|
||||||
def printdir(self, file=None):
|
def printdir(self, file=None):
|
||||||
"""Print a table of contents for the zip file."""
|
"""Print a table of contents for the zip file."""
|
||||||
if file is None:
|
|
||||||
file = sys.stdout
|
|
||||||
print("%-46s %19s %12s" % ("File Name", "Modified ", "Size"),
|
print("%-46s %19s %12s" % ("File Name", "Modified ", "Size"),
|
||||||
file=file)
|
file=file)
|
||||||
for zinfo in self.filelist:
|
for zinfo in self.filelist:
|
||||||
|
|
Loading…
Reference in New Issue