Bernhard Reiter added the comment:
Yesterday I ran into the same problem and I agree that it should be solved, by
either documenting the issue or fixing it.
As the code in
https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L199
still shows the branch and
https://docs.python.o
Martin Panter added the comment:
I closed Issue 18543 as a duplicate, which points out this also affects Python
2.7.9+, and can also be triggered by setting the “context” parameter.
Overall, I am not comfortable with the complication and hacks in the current
patch. Maybe it would be simpler to