Kaydet (Commit) 0a2e874e authored tarafından Berker Peksag's avatar Berker Peksag

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

Patch by Ezio Melotti.
üst 0ecd7ba9
......@@ -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'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment