Slplited python compat file for python 2.x and 3.x

This commit is contained in:
Renato Filho 2011-10-06 15:06:29 -03:00 • committed by Hugo Parente Lima
commit c33a78cdd4
3 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,14 @@
def b(s):
return bytes(s, "UTF8")
def l(n):
return n
def unicode_(s):
return s
unicode = str
unichr = chr
long = int
unichr = chr
buffer = b