# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1523437537 -19800 # Node ID c4a0626f6b6e8b55d12a7d85624eee0cc4ad675c # Parent 8a73132214a3ca51841f0103a326cbf978567151 py3: use pycompat.bytestr() where repr in involved Differential Revision: https://phab.mercurial-scm.org/D3244 diff -r 8a73132214a3 -r c4a0626f6b6e 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)