py3: make sure __repr__ returns str
No test fails but I found it while debugging test-commit-interactive-curses.t
failure.
# skip-blame because just r'' prefix
Differential Revision: https://phab.mercurial-scm.org/D5878
--- a/mercurial/patch.py Thu Feb 07 16:44:43 2019 +0300
+++ b/mercurial/patch.py Thu Feb 07 16:43:42 2019 +0300
@@ -363,7 +363,7 @@
return self._ispatchinga(afile) and self._ispatchingb(bfile)
def __repr__(self):
- return "<patchmeta %s %r>" % (self.op, self.path)
+ return r"<patchmeta %s %r>" % (self.op, self.path)
def readgitpatch(lr):
"""extract git-style metadata about patches from <patchname>"""