comparison mercurial/url.py @ 41450:d437d1e2a711

url: convert some variables back to bytes Differential Revision: https://phab.mercurial-scm.org/D5735
author Augie Fackler <augie@google.com>
date Tue, 29 Jan 2019 13:25:21 -0500
parents bc776c31c093
children 349c8879becd
comparison
equal deleted inserted replaced
41449:bc776c31c093 41450:d437d1e2a711
60 def find_user_password(self, realm, authuri): 60 def find_user_password(self, realm, authuri):
61 assert isinstance(realm, (type(None), str)) 61 assert isinstance(realm, (type(None), str))
62 assert isinstance(authuri, str) 62 assert isinstance(authuri, str)
63 authinfo = self.passwddb.find_user_password(realm, authuri) 63 authinfo = self.passwddb.find_user_password(realm, authuri)
64 user, passwd = authinfo 64 user, passwd = authinfo
65 user, passwd = pycompat.bytesurl(user), pycompat.bytesurl(passwd)
65 if user and passwd: 66 if user and passwd:
66 self._writedebug(user, passwd) 67 self._writedebug(user, passwd)
67 return (user, passwd) 68 return (user, passwd)
68 69
69 if not user or not passwd: 70 if not user or not passwd: