minor update regarding last commit

This commit is contained in:
Miroslav Stampar 2011-01-05 12:09:57 +00:00
parent 042e3f76ba
commit 7411052456

View File

@ -26,8 +26,8 @@ class SmartHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):
def http_error_auth_reqed(self, auth_header, host, req, headers): def http_error_auth_reqed(self, auth_header, host, req, headers):
# Reset the retry counter once for each request. # Reset the retry counter once for each request.
if req not in self.retried_req: if hash(req) not in self.retried_req:
self.retried_req.append(req) self.retried_req.append(hash(req))
self.retried = 0 self.retried = 0
return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed( return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed(
self, auth_header, host, req, headers) self, auth_header, host, req, headers)