urllib.request.urlopen()
no longer respects the http.client.HTTPConnection.debuglevel
flag
#99352
Labels
type-bug
An unexpected behavior, bug, or error
Bug report
The
urllib.request.urlopen()
function used to respect the debug flag set inhttp.client.HTTPConnection.debuglevel
prior to Python 3.5.2. For example:When this change was introduced to respect the
debuglevel
argument in the constructor forurllib.request.AbstractHTTPHandler
andurllib.request.HTTPSHandler
, this caused the globalHTTPConnection.debuglevel
to be ignored, even when a value is not passed toAbstractHTTPHandler
's andHTTPSHandler
's constructor:Your environment
I tested it out in two Docker containers to verify that there was a point at which it worked. I also tested it out on the system interpreter on my local machine to verify that it was still not working on a more recent version of Python. I checked the contents of the
request.py
in the stdlib on my machine and compared it with the contents in the trunk branch of this repo and I saw that the functionality was essentially the same.http.client.HTTPConnection.debuglevel
inurllib.request.AbstractHTTPHandler
#99353HTTPSHandler
fromurllib.request
#103688The text was updated successfully, but these errors were encountered: