Patchwork D3244: py3: use pycompat.bytestr() where repr in involved

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 9:26 a.m.
Message ID <differential-rev-PHID-DREV-ckmzddtgcgnuubzulkle-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30674/
State Superseded
Headers show

Comments

phabricator - April 11, 2018, 9:26 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/D3244

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel
phabricator - April 11, 2018, 5:13 p.m.
durin42 accepted this revision.
durin42 added a comment.
This revision is now accepted and ready to land.


  queued, congrats on becoming the new mq maintainer

REPOSITORY
  rHG Mercurial

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

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

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1156,7 +1156,7 @@ 
         for c in ('#', ':', '\r', '\n'):
             if c in name:
                 raise error.Abort(_('%r cannot be used in the name of a patch')
-                                 % c)
+                                 % pycompat.bytestr(c))
 
     def checkpatchname(self, name, force=False):
         self.checkreservedname(name)