aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/sbkdbg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/sbkdbg.h')
-rw-r--r--sources/shiboken2/libshiboken/sbkdbg.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sources/shiboken2/libshiboken/sbkdbg.h b/sources/shiboken2/libshiboken/sbkdbg.h
index 02ea773ac..2a3211489 100644
--- a/sources/shiboken2/libshiboken/sbkdbg.h
+++ b/sources/shiboken2/libshiboken/sbkdbg.h
@@ -93,11 +93,9 @@ inline std::ostream &operator<<(std::ostream &out, PyObject *obj)
{
PyObject *repr = Shiboken::Object::isValid(obj, false) ? PyObject_Repr(obj) : 0;
if (repr) {
-#ifdef IS_PY3K
PyObject *str = PyUnicode_AsUTF8String(repr);
Py_DECREF(repr);
repr = str;
-#endif
out << PyBytes_AS_STRING(repr);
Py_DECREF(repr);
} else {