mercurial/url.py
changeset 11415 a1e575b48563
parent 11035 e4f911ce21de
child 11457 2ec346160783
equal deleted inserted replaced
11414:0fa4474bdc2f 11415:a1e575b48563
   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':