From c50bbe5ae726edfb265bd54cb7ce0e547e3f4b31 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 29 Jun 2009 02:25:54 +0000 Subject: BGE Py API using python3 c/api calls. include bpy_compat.h to support py2.x --- source/gameengine/Expressions/Value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/Expressions/Value.h') diff --git a/source/gameengine/Expressions/Value.h b/source/gameengine/Expressions/Value.h index 9da75b96e78..8c9f99b335e 100644 --- a/source/gameengine/Expressions/Value.h +++ b/source/gameengine/Expressions/Value.h @@ -219,7 +219,7 @@ public: //static PyObject* PyMake(PyObject*,PyObject*); virtual PyObject *py_repr(void) { - return PyString_FromString((const char*)GetText()); + return PyUnicode_FromString((const char*)GetText()); } virtual PyObject* ConvertValueToPython() { -- cgit v1.2.3