comparison mercurial/bundle2.py @ 44247:c443b9ba6f63 stable

py3: __repr__ needs to return str, not bytes Differential Revision: https://phab.mercurial-scm.org/D8089
author Kyle Lippincott <spectral@google.com>
date Thu, 02 Jan 2020 11:04:18 -0800
parents 888bd39ed555
children 74172a234dd3
comparison
equal deleted inserted replaced
44246:eecc005229ff 44247:c443b9ba6f63
1011 # - False: currently generated, 1011 # - False: currently generated,
1012 # - True: generation done. 1012 # - True: generation done.
1013 self._generated = None 1013 self._generated = None
1014 self.mandatory = mandatory 1014 self.mandatory = mandatory
1015 1015
1016 @encoding.strmethod
1016 def __repr__(self): 1017 def __repr__(self):
1017 cls = b"%s.%s" % (self.__class__.__module__, self.__class__.__name__) 1018 cls = b"%s.%s" % (self.__class__.__module__, self.__class__.__name__)
1018 return b'<%s object at %x; id: %s; type: %s; mandatory: %s>' % ( 1019 return b'<%s object at %x; id: %s; type: %s; mandatory: %s>' % (
1019 cls, 1020 cls,
1020 id(self), 1021 id(self),