aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util/py3xfunctions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util/py3xfunctions.py')
-rw-r--r--tests/util/py3xfunctions.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/util/py3xfunctions.py b/tests/util/py3xfunctions.py
new file mode 100644
index 000000000..1dd5148df
--- /dev/null
+++ b/tests/util/py3xfunctions.py
@@ -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