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
--- 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')),