Mercurial > hg-stable
changeset 31841:9ff5a124d111
py3: replace str() with bytes()
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 07 Apr 2017 13:46:35 +0530 |
parents | 7973e0a15bd4 |
children | c130d092042a |
files | mercurial/hg.py mercurial/util.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Apr 07 11:02:43 2017 -0700 +++ b/mercurial/hg.py Fri Apr 07 13:46:35 2017 +0530 @@ -103,7 +103,7 @@ if u.fragment: branch = u.fragment u.fragment = None - return str(u), (branch, branches or []) + return bytes(u), (branch, branches or []) schemes = { 'bundle': bundlerepo,
--- a/mercurial/util.py Fri Apr 07 11:02:43 2017 -0700 +++ b/mercurial/util.py Fri Apr 07 13:46:35 2017 +0530 @@ -2799,7 +2799,7 @@ user, passwd = self.user, self.passwd try: self.user, self.passwd = None, None - s = str(self) + s = bytes(self) finally: self.user, self.passwd = user, passwd if not self.user: @@ -2854,7 +2854,7 @@ u = url(u) if u.passwd: u.passwd = '***' - return str(u) + return bytes(u) def removeauth(u): '''remove all authentication information from a url string'''