# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1529315898 -19800 # Node ID 4a6d01b49d91c8a6265af95bec5f79265c987897 # Parent bf953d218a91ba7aa4c5484a61165bd8a2221feb py3: convert error instances to bytes using pycompat.bytestr() Differential Revision: https://phab.mercurial-scm.org/D3788 diff -r bf953d218a91 -r 4a6d01b49d91 hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py Mon Jun 18 15:27:34 2018 +0530 +++ b/hgext/convert/convcmd.py Mon Jun 18 15:28:18 2018 +0530 @@ -123,7 +123,7 @@ exceptions.append(inst) if not ui.quiet: for inst in exceptions: - ui.write("%s\n" % inst) + ui.write("%s\n" % pycompat.bytestr(inst)) raise error.Abort(_('%s: missing or unsupported repository') % path) def convertsink(ui, path, type):