##// END OF EJS Templates
py3: make sure we return strings from __str__ and __repr__...
Pulkit Goyal -
r32613:e7eb7494 default
parent child Browse files
Show More
@@ -77,7 +77,7 class basectx(object):
77 77 return self.rev()
78 78
79 79 def __repr__(self):
80 return "<%s %s>" % (type(self).__name__, str(self))
80 return r"<%s %s>" % (type(self).__name__, str(self))
81 81
82 82 def __eq__(self, other):
83 83 try:
@@ -1403,7 +1403,7 class committablectx(basectx):
1403 1403 self._extra['branch'] = 'default'
1404 1404
1405 1405 def __str__(self):
1406 return str(self._parents[0]) + "+"
1406 return str(self._parents[0]) + r"+"
1407 1407
1408 1408 def __nonzero__(self):
1409 1409 return True
General Comments 0
You need to be logged in to leave comments. Login now