From: Guido van Rossum Date: Tue, 22 May 2007 18:01:30 +0000 (+0000) Subject: There's no need to default file to sys.stdout -- print(file=None) already X-Git-Tag: v3.0a1~900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc19f0966195c711407cb710225cab55ba1f4be9;p=python There's no need to default file to sys.stdout -- print(file=None) already selects sys.stdout. --- diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 6cff722fd1..2fb1ea5643 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: