1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01:00

- reset retry counter on 404 answer for all python 2.7.x versions

This commit is contained in:
Adrian Schröter 2013-03-20 14:11:58 +01:00
parent b0ddb63432
commit 320238350f

View File

@ -452,7 +452,7 @@ def _build_opener(url):
return None
authhandler_class = OscHTTPBasicAuthHandler
elif sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 1):
elif sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 99):
class OscHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):
def http_error_404(self, *args):
self.reset_retry_count()