Mercurial > hg-stable
changeset 43434:c5bcd946a34b stable
py3: use pycompat.bytestr() instead of pycompat.sysstr()
pycompat.sysstr() doesn’t work because it doesn’t accept arguments of type
`type` and returns a unicode object on Python3, while the format string wants
a bytes-like object.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 19 Nov 2019 11:59:43 +0100 |
parents | 0f82b29f7494 |
children | cb23d9e3e21f |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Nov 13 22:40:32 2019 +0100 +++ b/mercurial/localrepo.py Tue Nov 19 11:59:43 2019 +0100 @@ -1568,7 +1568,7 @@ else: raise error.ProgrammingError( b"unsupported changeid '%s' of type %s" - % (changeid, pycompat.sysstr(type(changeid))) + % (changeid, pycompat.bytestr(type(changeid))) ) return context.changectx(self, rev, node)