diff options
author | Christian Tismer <tismer@stackless.com> | 2020-10-27 17:09:45 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-10-27 21:13:56 +0000 |
commit | 5de0db2391c719ef6c484813cc4aee61da355160 (patch) | |
tree | 93facde76f304de3118477d90163108e97018d09 /sources/shiboken2/libshiboken/sbkstring.cpp | |
parent | dcced0742f383b1932d0e56323387fbd8aeb4513 (diff) |
remove traces of Python2 from C code
It will be assumed that Python is always Python 3.
All checks for Python 2 are removed.
This is the second part of cleaning up the C code
from references to Python 2.
Task-number: PYSIDE-904
Change-Id: I3006412c2a5bb65402101b0aac5a5f2fc79ce2f8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/libshiboken/sbkstring.cpp')
-rw-r--r-- | sources/shiboken2/libshiboken/sbkstring.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sources/shiboken2/libshiboken/sbkstring.cpp b/sources/shiboken2/libshiboken/sbkstring.cpp index ca32f5919..93a630ac8 100644 --- a/sources/shiboken2/libshiboken/sbkstring.cpp +++ b/sources/shiboken2/libshiboken/sbkstring.cpp @@ -211,11 +211,7 @@ PyObject *createStaticString(const char *str) Py_AtExit(finalizeStaticStrings); initialized = true; } -#if PY_VERSION_HEX >= 0x03000000 PyObject *result = PyUnicode_InternFromString(str); -#else - PyObject *result = PyString_InternFromString(str); -#endif if (result == nullptr) { // This error is never checked, but also very unlikely. Report and exit. PyErr_Print(); |