##// END OF EJS Templates
py3: make sure we return strings from __str__ and __repr__...
py3: make sure we return strings from __str__ and __repr__ On Python 3: >>> class abc: ... def __repr__(self): ... return b'abc' ... >>> abc() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: __repr__ returned non-string (type bytes) >>> class abc: ... def __str__(self): ... return b'abc' ... >>> str(abc()) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: __str__ returned non-string (type bytes) So the __str__ and __repr__ must return strings.

File last commit:

r19905:078ccd78 default
r32613:e7eb7494 default
Show More
changelog.tmpl
5 lines | 67 B | application/x-cheetah | CheetahLexer
{header}
# HG changelog
# Node ID {node}
{entries%changelogentry}