D3567: py3: use pycompat.bytestr() on bytes before %r-ing it
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed May 16 02:48:43 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3567
AFFECTED FILES
mercurial/match.py
CHANGE DETAILS
diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -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):
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list