From 0a2e874eead3238b86f6521ddc66f73061e1f236 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 10 Dec 2014 02:34:11 +0200 Subject: Issue #17554: Print "fetching ..." messages only in verbose mode. Patch by Ezio Melotti. --- Lib/test/support/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) -- cgit v0.12