Changeset 4336 for neercs/trunk/src/python/interpreter.c
- Timestamp:
- 02/08/10 09:41:59 (3 years ago)
- File:
-
- 1 edited
-
neercs/trunk/src/python/interpreter.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/python/interpreter.c
r4165 r4336 42 42 static char *getPythonError(void); 43 43 44 #if defined HAVE_PYTHON244 #if ! defined HAVE_PYTHON26 45 45 static PyObject *PyUnicode_FromString(char const *str) 46 46 { … … 188 188 PyObject *str = PyObject_Repr(p); 189 189 char *tmp; 190 #if defined HAVE_PYTHON 3190 #if defined HAVE_PYTHON26 191 191 tmp = PyBytes_AS_STRING(PyUnicode_AsEncodedString(str, "utf-8", "Error ~")); 192 #el if defined HAVE_PYTHON2192 #else 193 193 tmp = PyString_AsString(str); 194 194 #endif
Note: See TracChangeset
for help on using the changeset viewer.
