diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-12-10 00:34:11 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-12-10 00:34:11 (GMT) |
commit | 0a2e874eead3238b86f6521ddc66f73061e1f236 (patch) | |
tree | ebf637235f2563e61f1ef7809ea42f9196806b40 /Lib/test/support | |
parent | 0ecd7ba9681f8ff413fdf88cf932e6c37a69ae34 (diff) | |
download | cpython-0a2e874eead3238b86f6521ddc66f73061e1f236.zip cpython-0a2e874eead3238b86f6521ddc66f73061e1f236.tar.gz cpython-0a2e874eead3238b86f6521ddc66f73061e1f236.tar.bz2 |
Issue #17554: Print "fetching <url> ..." messages only in verbose mode.
Patch by Ezio Melotti.
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | 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 index d98068c..205c47c 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1040,7 +1040,8 @@ def open_urlresource(url, *args, **kw): # 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')) |