# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-05-16 02:28:02 # Node ID 2f406142d7b4e444b1203c7cff9e1da94a81d733 # Parent a9ffb4a577d0c4516ba5f35f278c6fcd3b44ea95 py3: use pycompat.bytestr() on bytes before %r-ing it Differential Revision: https://phab.mercurial-scm.org/D3567 diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -404,7 +404,7 @@ class patternmatcher(basematcher): @encoding.strmethod def __repr__(self): - return ('' % self._pats) + return ('' % pycompat.bytestr(self._pats)) class includematcher(basematcher):