Quantcast
Channel: Mako: Ticket Query
Viewing all articles
Browse latest Browse all 38

#200: running setup.py/2to3 changes unicode() to str() making code invalid

$
0
0

setup.py distributed with mako runs 2to3 by default on systems with python3.

2to3 automatically changes unicode() to str() making some of the places where unicode() appears incorrect.

i.e. filters.py line 59: unicode(str(x), encoding=key)

is getting changed to: str(str(x), encoding=key)


Viewing all articles
Browse latest Browse all 38

Trending Articles