>>> p = pwb.Page(pwb.Site('en'), 'A')
>>> p
Page(b'A')It seems that the __repr__ function should be rewritten as
def __repr__(self):
"""Return a more complete string representation."""
if sys.version_info[0] == 2:
title = self.title().encode(config.console_encoding)
else:
title = self.title()
return str('{0}({1})').format(self.__class__.__name__, title)instead of
def __repr__(self):
"""Return a more complete string representation."""
title = self.title().encode(config.console_encoding)
return str('{0}({1})').format(self.__class__.__name__, title)