mercurial/util.py
changeset 37366 b23e3cc1afd4
parent 37322 a67fd1fe5109
child 37382 de9f9f888900
--- a/mercurial/util.py	Thu Apr 05 16:54:56 2018 +0530
+++ b/mercurial/util.py	Thu Apr 05 16:56:34 2018 +0530
@@ -2864,7 +2864,7 @@
     '''remove all authentication information from a url string'''
     u = url(u)
     u.user = u.passwd = None
-    return str(u)
+    return bytes(u)
 
 timecount = unitcountfn(
     (1, 1e3, _('%.0f s')),