changeset 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 8a73132214a3
children 41ba336d9f1e
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)