D3788: py3: convert error instances to bytes using pycompat.bytestr()

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Jun 18 08:33:21 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4a6d01b49d91: py3: convert error instances to bytes using pycompat.bytestr() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3788?vs=9159&id=9171

REVISION DETAIL
  https://phab.mercurial-scm.org/D3788

AFFECTED FILES
  hgext/convert/convcmd.py

CHANGE DETAILS

diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py
+++ b/hgext/convert/convcmd.py
@@ -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):



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list