url: convert some variables back to bytes
authorAugie Fackler <augie@google.com>
Tue, 29 Jan 2019 13:25:21 -0500
changeset 41470 d437d1e2a711
parent 41469 bc776c31c093
child 41471 30dd20a56f3e
url: convert some variables back to bytes Differential Revision: https://phab.mercurial-scm.org/D5735
mercurial/url.py
--- 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)