[Python-checkins] cpython: Issue #17554: Print "fetching <url> ..." messages only in verbose mode.

berker.peksag python-checkins at python.org
Wed Dec 10 01:34:02 CET 2014


https://hg.python.org/cpython/rev/8c337b4a8811
changeset: 93798:8c337b4a8811
parent: 93796:3a648b3d1694
user: Berker Peksag <berker.peksag at gmail.com>
date: Wed Dec 10 02:34:11 2014 +0200
summary:
 Issue #17554: Print "fetching <url> ..." messages only in verbose mode.
Patch by Ezio Melotti.
files:
 Lib/test/support/__init__.py | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1040,7 +1040,8 @@
 # Verify the requirement before downloading the file
 requires('urlfetch')
 
- print('\tfetching %s ...' % url, file=get_original_stdout())
+ if verbose:
+ print('\tfetching %s ...' % url, file=get_original_stdout())
 opener = urllib.request.build_opener()
 if gzip:
 opener.addheaders.append(('Accept-Encoding', 'gzip'))
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /