diff hgext/mq.py @ 37559:c4a0626f6b6e

py3: use pycompat.bytestr() where repr in involved Differential Revision: https://phab.mercurial-scm.org/D3244
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 11 Apr 2018 14:35:37 +0530
parents a7de62adcf03
children 678d760c71ff
line wrap: on
line diff
--- 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)