mercurial/util.py
changeset 15028 eb97a3e38656
parent 15027 1e45b92f4fb2
child 15031 0cb27eda3a1e
equal deleted inserted replaced
15027:1e45b92f4fb2 15028:eb97a3e38656
  1587             s = str(self)
  1587             s = str(self)
  1588         finally:
  1588         finally:
  1589             self.user, self.passwd = user, passwd
  1589             self.user, self.passwd = user, passwd
  1590         if not self.user:
  1590         if not self.user:
  1591             return (s, None)
  1591             return (s, None)
  1592         # authinfo[1] is passed to urllib2 password manager, and its URIs
  1592         # authinfo[1] is passed to urllib2 password manager, and its
  1593         # must not contain credentials.
  1593         # URIs must not contain credentials. The host is passed in the
       
  1594         # URIs list because Python < 2.4.3 uses only that to search for
       
  1595         # a password.
  1594         return (s, (None, (s, self.host),
  1596         return (s, (None, (s, self.host),
  1595                     self.user, self.passwd or ''))
  1597                     self.user, self.passwd or ''))
  1596 
  1598 
  1597     def isabs(self):
  1599     def isabs(self):
  1598         if self.scheme and self.scheme != 'file':
  1600         if self.scheme and self.scheme != 'file':