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

Fix issue 21 #22

Closed msabramo closed 10 years ago

msabramo commented 10 years ago

Fixes GH-21.

# _test_u.py

from __future__ import absolute_import, division, print_function, unicode_literals

from pies.overrides import *

print(u('Bj\xf6rk Gu\xf0mundsd\xf3ttir'))
$ python3.3 _test_u.py
Björk Guðmundsdóttir

$ python _test_u.py
Björk Guðmundsdóttir
timothycrosley commented 10 years ago

Looks great! Thanks!

~Timothy