py3: use pycompat.bytestr() where repr in involved
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 11 Apr 2018 14:35:37 +0530
changeset 37559 c4a0626f6b6e
parent 37558 8a73132214a3
child 37560 41ba336d9f1e
py3: use pycompat.bytestr() where repr in involved Differential Revision: https://phab.mercurial-scm.org/D3244
hgext/mq.py
--- a/hgext/mq.py	Tue Apr 10 18:16:47 2018 -0700
+++ b/hgext/mq.py	Wed Apr 11 14:35:37 2018 +0530
@@ -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)