mercurial/url.py
changeset 41449 bc776c31c093
parent 40043 6509fcec830c
child 41450 d437d1e2a711
--- a/mercurial/url.py	Tue Jan 29 16:03:52 2019 +0300
+++ b/mercurial/url.py	Tue Jan 29 13:24:20 2019 -0500
@@ -58,6 +58,8 @@
         return self.passwddb.add_password(realm, uri, user, passwd)
 
     def find_user_password(self, realm, authuri):
+        assert isinstance(realm, (type(None), str))
+        assert isinstance(authuri, str)
         authinfo = self.passwddb.find_user_password(realm, authuri)
         user, passwd = authinfo
         if user and passwd: