mercurial/url.py
changeset 41449 bc776c31c093
parent 40043 6509fcec830c
child 41450 d437d1e2a711
equal deleted inserted replaced
41448:fa7d61f9c512 41449:bc776c31c093
    56 
    56 
    57     def add_password(self, realm, uri, user, passwd):
    57     def add_password(self, realm, uri, user, passwd):
    58         return self.passwddb.add_password(realm, uri, user, passwd)
    58         return self.passwddb.add_password(realm, uri, user, passwd)
    59 
    59 
    60     def find_user_password(self, realm, authuri):
    60     def find_user_password(self, realm, authuri):
       
    61         assert isinstance(realm, (type(None), str))
       
    62         assert isinstance(authuri, str)
    61         authinfo = self.passwddb.find_user_password(realm, authuri)
    63         authinfo = self.passwddb.find_user_password(realm, authuri)
    62         user, passwd = authinfo
    64         user, passwd = authinfo
    63         if user and passwd:
    65         if user and passwd:
    64             self._writedebug(user, passwd)
    66             self._writedebug(user, passwd)
    65             return (user, passwd)
    67             return (user, passwd)