]> granicus.if.org Git - python/commitdiff
There's no need to default file to sys.stdout -- print(file=None) already
authorGuido van Rossum <guido@python.org>
Tue, 22 May 2007 18:01:30 +0000 (18:01 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 22 May 2007 18:01:30 +0000 (18:01 +0000)
selects sys.stdout.

Lib/zipfile.py

index 6cff722fd161d0666a086b022626d38ab1e59cea..2fb1ea564372715abc6e28811222a00c85cbc891 100644 (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: