Issue #17554: Print "fetching <url> ..." messages only in verbose mode.

Patch by Ezio Melotti.
This commit is contained in:
Berker Peksag 2014-12-10 02:34:11 +02:00
parent 0ecd7ba968
commit 0a2e874eea
1 changed files with 2 additions and 1 deletions

View File

@ -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'))