Slplited python compat file for python 2.x and 3.x
This commit is contained in:
parent
18383549d6
commit
c33a78cdd4
3 changed files with 66 additions and 0 deletions
14
tests/util/py3xfunctions.py
Normal file
14
tests/util/py3xfunctions.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue