mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Issue #17554: Print "fetching <url> ..." messages only in verbose mode.
Patch by Ezio Melotti.
This commit is contained in:
parent
0ecd7ba968
commit
0a2e874eea
1 changed files with 2 additions and 1 deletions
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue