Patchwork D5878: py3: make sure __repr__ returns str

login
register
mail settings
Submitter phabricator
Date Feb. 9, 2019, 9:41 p.m.
Message ID <204e7b004da142ba489a7c22efc76535@localhost.localdomain>
Download mbox | patch
Permalink /patch/38590/
State Not Applicable
Headers show

Comments

phabricator - Feb. 9, 2019, 9:41 p.m.
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




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

Patch

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>"""