aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-09-16 18:23:51 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:15 -0300
commitcbfebc05a591a2370c3fad044e7a45a305c8ba4a (patch)
treea21742a87815907bfa004813dfa98bbf63ae8af4 /libshiboken
parent2cc05efe4c28c90d5dd6126d251f5ca9a9ebde07 (diff)
Use PyBytes instead of PyString on generated code.
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/sbkpython.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libshiboken/sbkpython.h b/libshiboken/sbkpython.h
index 85a097b2a..d1653d792 100644
--- a/libshiboken/sbkpython.h
+++ b/libshiboken/sbkpython.h
@@ -37,10 +37,12 @@
#define SbkNumber_Check PyNumber_Check
#define Py_TPFLAGS_CHECKTYPES 0
+ #define SBK_STR_NAME "bytes"
#else
// Note: if there wasn't for the old-style classes, only a PyNumber_Check would suffice.
#define SbkNumber_Check(X) \
(PyNumber_Check(X) && (!PyInstance_Check(X) || PyObject_HasAttrString(X, "__trunc__")))
+ #define SBK_STR_NAME "str"
#endif
#endif