##// END OF EJS Templates
py3: fully fix bundlepart.__repr__ to return str not bytes...
Kyle Lippincott -
r44759:74172a23 stable
parent child Browse files
Show More
@@ -1013,10 +1013,9 b' class bundlepart(object):'
1013 self._generated = None
1013 self._generated = None
1014 self.mandatory = mandatory
1014 self.mandatory = mandatory
1015
1015
1016 @encoding.strmethod
1017 def __repr__(self):
1016 def __repr__(self):
1018 cls = b"%s.%s" % (self.__class__.__module__, self.__class__.__name__)
1017 cls = "%s.%s" % (self.__class__.__module__, self.__class__.__name__)
1019 return b'<%s object at %x; id: %s; type: %s; mandatory: %s>' % (
1018 return '<%s object at %x; id: %s; type: %s; mandatory: %s>' % (
1020 cls,
1019 cls,
1021 id(self),
1020 id(self),
1022 self.id,
1021 self.id,
General Comments 0
You need to be logged in to leave comments. Login now