Douman added the comment:
Just to up issue.
It seems that there is some changes in 2.7.9 that breaks usage of
urllib2.urlopen()
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23245
Douman added the comment:
I made additional experiments and now i'm confused
When i tried to execute urlopen in python interpeter it worked fine.
But it fails for me when i attempt to do so via some helper function in search
engine of qBittorent it throw exception
https://github.com
Douman added the comment:
Yes, i checked what is http_class. It is passed as httplib.HTTPSConnection
Before submitting this issue i checked httplib.py in my installation of py2 and
there https://hg.python.org/cpython/file/2.7/Lib/httplib.py
HTTPSConnection has argument context.
Btw, it would
Douman added the comment:
It seems to be this one
https://hg.python.org/cpython/rev/1882157b298a
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23245
Douman added the comment:
Btw, i also tried to replace **kwargs with usual argument and it didn't throw
exception
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23245
Douman added the comment:
Also according to documentation this class was specifically updated with
context in 2.7.9
I guess then there should commit related to adding of context to
HTTPSConnection
--
___
Python tracker rep...@bugs.python.org
http
New submission from Douman:
I get strange callstack from urllib2
It seems that python thinks that HTTPSConnection doesn't have context argument.
Which is entirely incorrect.
I have suspicions that this is related to the way how context argument is
passed(kwargs)
This happens starting from