mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 05:38:43 +02:00
Revert "- reset retry counter on 404 answer for all python 2.7.x versions"
This reverts commit 320238350f
.
With python >= 2.7.1 this codepath should not be needed (see also
https://hg.python.org/cpython/rev/64287).
Conflicts:
osc/conf.py
This commit is contained in:
@@ -476,7 +476,7 @@ def _build_opener(url):
|
||||
return None
|
||||
|
||||
authhandler_class = OscHTTPBasicAuthHandler
|
||||
elif sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 99):
|
||||
elif sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 1):
|
||||
class OscHTTPBasicAuthHandler(HTTPBasicAuthHandler):
|
||||
def http_error_404(self, *args):
|
||||
self.reset_retry_count()
|
||||
|
Reference in New Issue
Block a user