diff options
Diffstat (limited to 'sources/shiboken2/libshiboken/helper.cpp')
-rw-r--r-- | sources/shiboken2/libshiboken/helper.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sources/shiboken2/libshiboken/helper.cpp b/sources/shiboken2/libshiboken/helper.cpp index b0f909d39..cad48951e 100644 --- a/sources/shiboken2/libshiboken/helper.cpp +++ b/sources/shiboken2/libshiboken/helper.cpp @@ -119,13 +119,8 @@ static void formatPyObject(PyObject *obj, std::ostream &str) str << PyLong_AsLong(obj); else if (PyFloat_Check(obj)) str << PyFloat_AsDouble(obj); -#ifdef IS_PY3K else if (PyUnicode_Check(obj)) str << '"' << _PepUnicode_AsString(obj) << '"'; -#else - else if (PyString_Check(obj)) - str << '"' << PyString_AsString(obj) << '"'; -#endif else if (PySequence_Check(obj)) formatPySequence(obj, str); else |