Mercurial > public > mercurial-scm > hg
diff hgext/journal.py @ 36653:2f7a3c90c0d7
py3: use pycompat.bytestr() to convert error messages to bytes
Differential Revision: https://phab.mercurial-scm.org/D2535
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 02 Mar 2018 07:13:33 +0530 |
parents | c6061cadb400 |
children | d79d68bb9f7c |
line wrap: on
line diff
--- a/hgext/journal.py Sat Mar 03 14:28:51 2018 -0500 +++ b/hgext/journal.py Fri Mar 02 07:13:33 2018 +0530 @@ -508,7 +508,7 @@ ctx = repo[hash] displayer.show(ctx) except error.RepoLookupError as e: - fm.write('repolookuperror', "%s\n\n", str(e)) + fm.write('repolookuperror', "%s\n\n", pycompat.bytestr(e)) displayer.close() fm.end()