changeset 41624:3751595ec45e

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Thu, 07 Feb 2019 16:43:42 +0300
parents 7c4e205f71ca
children 93620a4ba88d
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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>"""