mercurial/url.py
changeset 41450 d437d1e2a711
parent 41449 bc776c31c093
child 41590 349c8879becd
--- a/mercurial/url.py	Tue Jan 29 13:24:20 2019 -0500
+++ b/mercurial/url.py	Tue Jan 29 13:25:21 2019 -0500
@@ -62,6 +62,7 @@
         assert isinstance(authuri, str)
         authinfo = self.passwddb.find_user_password(realm, authuri)
         user, passwd = authinfo
+        user, passwd = pycompat.bytesurl(user), pycompat.bytesurl(passwd)
         if user and passwd:
             self._writedebug(user, passwd)
             return (user, passwd)