aboutsummaryrefslogtreecommitdiffstats
path: root/tests/py3kcompat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py3kcompat.py')
-rw-r--r--tests/py3kcompat.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/py3kcompat.py b/tests/py3kcompat.py
index afa951027..644eec3ee 100644
--- a/tests/py3kcompat.py
+++ b/tests/py3kcompat.py
@@ -34,8 +34,16 @@ if IS_PY3K:
def b(s):
return bytes(s, "UTF8")
+ def l(n):
+ return n
+
+ long = int
else:
def b(s):
return s
+ def l(n):
+ return long(n)
+ unicode = unicode
+ long = long