1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

Fix condition for using urllib2 workaround

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762825
This commit is contained in:
Sjoerd Simons 2014-09-26 09:54:03 +02:00 committed by Michal Čihař
parent 603cf3b713
commit 2f14cedcff

View File

@ -450,7 +450,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, 1) \
if sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 99) \
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)