D5878: py3: make sure __repr__ returns str

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sat Feb 9 16:41:27 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3751595ec45e: py3: make sure __repr__ returns str (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5878?vs=13887&id=13954

REVISION DETAIL
  https://phab.mercurial-scm.org/D5878

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -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>"""



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list