changeset 38366:4a6d01b49d91

py3: convert error instances to bytes using pycompat.bytestr() Differential Revision: https://phab.mercurial-scm.org/D3788
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 18 Jun 2018 15:28:18 +0530
parents bf953d218a91
children e033fd788bf8
files hgext/convert/convcmd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):