mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 16:56:15 +01:00
Revert "Fix condition for using urllib2 workaround"
This reverts commit2f14cedcff
. Actually, this was meant to fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762825, which was (probably) caused due to the following: - commit320238350f
introduced a codepath, which should not be needed for python >= 2.7.1 (see also https://hg.python.org/cpython/rev/64287) - this codepath uses the "reset_retry_count" method, which is not present in Debian Jessie's libpython2.7-stdlib: libpython2.7-stdlib_2.7.8-11 backports a patch from python's 2.7.9 branch, which removes the "reset_retry_count" method (https://hg.python.org/cpython/rev/c1edc4e43eb1). This fixes bnc#911080 and github issue #131.
This commit is contained in:
parent
68d10dfe8b
commit
3547ef95ef
@ -460,7 +460,7 @@ def _build_opener(url):
|
||||
|
||||
# workaround for http://bugs.python.org/issue9639
|
||||
authhandler_class = HTTPBasicAuthHandler
|
||||
if sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 99) \
|
||||
if sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 1) \
|
||||
and not 'reset_retry_count' in dir(HTTPBasicAuthHandler):
|
||||
print('warning: your urllib2 version seems to be broken. ' \
|
||||
'Using a workaround for http://bugs.python.org/issue9639', file=sys.stderr)
|
||||
|
Loading…
Reference in New Issue
Block a user