py3: make sure __repr__ returns str
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 07 Feb 2019 16:43:42 +0300
changeset 41624 3751595ec45e
parent 41623 7c4e205f71ca
child 41625 93620a4ba88d
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
mercurial/patch.py
--- 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>"""