New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debuglevel not honored in urllib #71079
Comments
The following test program: import sys
try:
import urllib.request as urllib_request
except:
import urllib2 as urllib_request
print(sys.version)
handler = urllib_request.HTTPSHandler(debuglevel=1)
opener = urllib_request.build_opener(handler)
print(opener.open('https://httpbin.org/user-agent').read().decode('utf-8')) Works as expected in Python 2: But the verbose output is unavailable in Python 3.x: Patch attached. |
Hi Chi Hsuan, The patch looks good to me. Additional tests for the coverage of this will be helpful too. Thanks! |
Patch for the test. |
New changeset 63e23b2dedcc by Senthil Kumaran in branch '3.5': New changeset e0ec68d46464 by Senthil Kumaran in branch 'default': |
Thank you for the patch, Chi Hsuan Yen. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: