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

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 10:23 a.m.
Message ID <differential-rev-PHID-DREV-uk4hbtbybklc4emyhl7c-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32249/
State Superseded
Headers show

Comments

phabricator - June 18, 2018, 10:23 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/convert/convcmd.py

CHANGE DETAILS




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

Patch

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):