Mercurial > public > mercurial-scm > hg-stable
diff hgext/gpg.py @ 36682: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 | 5bc7ff103081 |
line wrap: on
line diff
--- a/hgext/gpg.py Sat Mar 03 14:28:51 2018 -0500 +++ b/hgext/gpg.py Fri Mar 02 07:13:33 2018 +0530 @@ -318,7 +318,7 @@ repo.commit(message, opts['user'], opts['date'], match=msigs, editor=editor) except ValueError as inst: - raise error.Abort(str(inst)) + raise error.Abort(pycompat.bytestr(inst)) def node2txt(repo, node, ver): """map a manifest into some text"""