Ejemplo n.º 1
0
 def find_user_password(self, realm, authuri):
   user, password = HTTPPasswordMgrWithDefaultRealm.find_user_password(self, realm, authuri)
   if user is None:
     U = URL(authuri, None)
     netauth = self._netrc.authenticators(U.hostname)
     if netauth is not None:
       user, account, password = netauth
       debug("find_user_password(%r, %r): netrc: user=%r password=%r", realm, authuri, user, password)
   return user, password