aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkdbg.h
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/sbkdbg.h')
-rw-r--r--libshiboken/sbkdbg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/sbkdbg.h b/libshiboken/sbkdbg.h
index 7c2bd6030..44d57baf4 100644
--- a/libshiboken/sbkdbg.h
+++ b/libshiboken/sbkdbg.h
@@ -71,7 +71,7 @@ inline std::ostream& operator<<(std::ostream& out, PyObject* obj)
{
PyObject* repr = Shiboken::Object::isValid(obj, false) ? PyObject_Repr(obj) : 0;
if (repr) {
- out << PyString_AS_STRING(repr);
+ out << PyBytes_AS_STRING(repr);
Py_DECREF(repr);
} else {
out << reinterpret_cast<void*>(obj);