py3: make sure __repr__ returns a str
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 04 Mar 2018 22:40:33 +0530
changeset 36728 c6901665cd5b
parent 36727 470df8c5b781
child 36729 87b8fc4533ca
py3: make sure __repr__ returns a str # skip-blame because just r'' prefix Differential Revision: https://phab.mercurial-scm.org/D2652
mercurial/context.py
--- a/mercurial/context.py	Sun Mar 04 22:40:08 2018 +0530
+++ b/mercurial/context.py	Sun Mar 04 22:40:33 2018 +0530
@@ -748,7 +748,7 @@
     __str__ = encoding.strmethod(__bytes__)
 
     def __repr__(self):
-        return "<%s %s>" % (type(self).__name__, str(self))
+        return r"<%s %s>" % (type(self).__name__, str(self))
 
     def __hash__(self):
         try: