summaryrefslogtreecommitdiff
path: root/SWIG/_py3k_compat.i
diff options
context:
space:
mode:
Diffstat (limited to 'SWIG/_py3k_compat.i')
-rw-r--r--SWIG/_py3k_compat.i2
1 files changed, 2 insertions, 0 deletions
diff --git a/SWIG/_py3k_compat.i b/SWIG/_py3k_compat.i
index bb32577..7c90bb4 100644
--- a/SWIG/_py3k_compat.i
+++ b/SWIG/_py3k_compat.i
@@ -36,6 +36,8 @@ FILE* PyFile_AsFile(PyObject *pyfile) {
#define PyLong_FromLong(x) PyInt_FromLong(x)
#define PyUnicode_AsUTF8(x) PyString_AsString(x)
+#define PyUnicode_FromString(x) PyString_FromString(x)
+#define PyUnicode_Format(x, y) PyString_Format(x, y)
#endif /* PY_MAJOR_VERSION */
%}