From: Berker Peksag Date: Wed, 10 Dec 2014 00:34:11 +0000 (+0200) Subject: Issue #17554: Print "fetching ..." messages only in verbose mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a2e874eead3238b86f6521ddc66f73061e1f236;p=python Issue #17554: Print "fetching ..." messages only in verbose mode. Patch by Ezio Melotti. --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index d98068cac8..205c47c0c1 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'))