Mercurial > hg-stable
changeset 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 | 1ccd75027abb |
children | 87c4253bebdb |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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')),