##// END OF EJS Templates
http: explain why the host is passed to urllib2 password manager...
Patrick Mezard -
r15028:eb97a3e3 default
parent child Browse files
Show More
@@ -1589,8 +1589,10 b' class url(object):'
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
General Comments 0
You need to be logged in to leave comments. Login now