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

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 5:15 p.m.
Message ID <7389f62bde9ebb9bb77643dfd2353436@localhost.localdomain>
Download mbox | patch
Permalink /patch/30731/
State Not Applicable
Headers show

Comments

phabricator - April 11, 2018, 5:15 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc4a0626f6b6e: py3: use pycompat.bytestr() where repr in involved (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3244?vs=7963&id=8005

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




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
@@ -1164,7 +1164,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)