summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2011-10-11 15:58:07 -0700
committerShawn O. Pearce <sop@google.com>2011-10-11 15:58:07 -0700
commitb660539c4ac691312b44c13c6311568749537290 (patch)
treefc73316785d794fdb2c9f6c85bb5ff13a2422388 /main.py
parent752371d91b9c7d1e9d6859cdf4cd8fef2f7b245c (diff)
downloadgit-repo-b660539c4ac691312b44c13c6311568749537290.tar.gz
Fix sync on Python 2.6.6v1.7.7.4
Python 2.6.6 has the same bug as Python 2.7, where HTTP authentication just stops working, but does not have the setter method to clear the retry counter. Work around by setting the field directly if it exists. Change-Id: I6a742e606bb7750dc66c33fc7c5d1310541db2c8 Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index fda81038..9bd4b457 100755
--- a/main.py
+++ b/main.py
@@ -287,6 +287,8 @@ class _BasicAuthHandler(urllib2.HTTPBasicAuthHandler):
287 reset = getattr(self, 'reset_retry_count', None) 287 reset = getattr(self, 'reset_retry_count', None)
288 if reset is not None: 288 if reset is not None:
289 reset() 289 reset()
290 elif getattr(self, 'retried', None):
291 self.retried = 0
290 raise 292 raise
291 293
292def init_http(): 294def init_http():