aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkdbg.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-09-14 15:25:11 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:14 -0300
commitdfd3c75a8ba6bc8a1ac42909d96bc6d4c11c6bd7 (patch)
treea4df32a57533616d7b7f975d23d0ca9d9cd0f3af /libshiboken/sbkdbg.h
parent31c44fea50380513bdc16d58891ba9e5ba7ecc31 (diff)
Replaced all PyString_* by PyBytes_* as preparation for a Python 3.x port.
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);