timothycrosley / deprecated.pies

The simplest (and tastiest) way to write one program that runs on both Python 2 and Python 3.
MIT License
148 stars 7 forks source link

u function doesn't work on Python 2 #21

Closed msabramo closed 10 years ago

msabramo commented 10 years ago
# _test_u.py

from __future__ import absolute_import, division, print_function, unicode_literals

from pies.overrides import *

print(u('Hello world!'))
$ python3.3 _test_u.py
Hello world!

$ python _test_u.py
(u'H', 1)