Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 37366:b23e3cc1afd4
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 05 Apr 2018 16:56:34 +0530 |
parents | a67fd1fe5109 |
children | de9f9f888900 |
line wrap: on
line diff
--- 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')),