py3: use pycompat.bytestr() on bytes before %r-ing it
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 16 May 2018 07:58:02 +0530
changeset 38061 2f406142d7b4
parent 38060 a9ffb4a577d0
child 38062 9d44c71bd892
py3: use pycompat.bytestr() on bytes before %r-ing it Differential Revision: https://phab.mercurial-scm.org/D3567
mercurial/match.py
--- a/mercurial/match.py	Thu Feb 15 17:15:21 2018 +0530
+++ b/mercurial/match.py	Wed May 16 07:58:02 2018 +0530
@@ -404,7 +404,7 @@
 
     @encoding.strmethod
     def __repr__(self):
-        return ('<patternmatcher patterns=%r>' % self._pats)
+        return ('<patternmatcher patterns=%r>' % pycompat.bytestr(self._pats))
 
 class includematcher(basematcher):