D2652: py3: make sure __repr__ returns a str
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun Mar 4 13:01:21 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc6901665cd5b: py3: make sure __repr__ returns a str (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2652?vs=6566&id=6571
REVISION DETAIL
https://phab.mercurial-scm.org/D2652
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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:
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list