py3: return bytes from util.removeauth()
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 05 Apr 2018 16:56:34 +0530
changeset 37366 b23e3cc1afd4
parent 37365 1ccd75027abb
child 37367 87c4253bebdb
py3: return bytes from util.removeauth() util.hidepassword() also returns bytes and we should deal in bytes as much as possible. This makes test-logexchange.t pass on Python 3.5 Differential Revision: https://phab.mercurial-scm.org/D3127
mercurial/util.py
--- 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')),