equal
deleted
inserted
replaced
554 arg = inst.args[0] |
554 arg = inst.args[0] |
555 if arg.startswith("AbstractDigestAuthHandler doesn't know "): |
555 if arg.startswith("AbstractDigestAuthHandler doesn't know "): |
556 return |
556 return |
557 raise |
557 raise |
558 |
558 |
|
559 # Python 2.6.5 will keep resetting the retry count on redirects, for |
|
560 # example when the server returns 401 on failing auth (like google code |
|
561 # currently does). We stop the endless recursion by not resetting the |
|
562 # count. |
|
563 def reset_retry_count(self): |
|
564 pass |
|
565 |
559 def getauthinfo(path): |
566 def getauthinfo(path): |
560 scheme, netloc, urlpath, query, frag = urlparse.urlsplit(path) |
567 scheme, netloc, urlpath, query, frag = urlparse.urlsplit(path) |
561 if not urlpath: |
568 if not urlpath: |
562 urlpath = '/' |
569 urlpath = '/' |
563 if scheme != 'file': |
570 if scheme != 'file': |