From cbfebc05a591a2370c3fad044e7a45a305c8ba4a Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Fri, 16 Sep 2011 18:23:51 -0300 Subject: Use PyBytes instead of PyString on generated code. --- libshiboken/sbkpython.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libshiboken') 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 -- cgit v1.2.3