aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/pep384impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/pep384impl.h')
-rw-r--r--sources/shiboken2/libshiboken/pep384impl.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/sources/shiboken2/libshiboken/pep384impl.h b/sources/shiboken2/libshiboken/pep384impl.h
index 07f4a913f..d314dc6c8 100644
--- a/sources/shiboken2/libshiboken/pep384impl.h
+++ b/sources/shiboken2/libshiboken/pep384impl.h
@@ -228,11 +228,7 @@ LIBSHIBOKEN_API int Pep_GetVerboseFlag(void);
//
// PyUnicode_GetSize is deprecated in favor of PyUnicode_GetLength.
-#if PY_VERSION_HEX < 0x03000000
-#define PepUnicode_GetLength(op) PyUnicode_GetSize((PyObject *)(op))
-#else
#define PepUnicode_GetLength(op) PyUnicode_GetLength((PyObject *)(op))
-#endif
#ifdef Py_LIMITED_API
@@ -285,17 +281,6 @@ LIBSHIBOKEN_API char *_PepUnicode_AsString(PyObject *);
/*****************************************************************************
*
- * RESOLVED: dictobject.h
- *
- * PYSIDE-803, PYSIDE-813: We need PyDict_GetItemWithError in order to
- * avoid the GIL.
- */
-#if PY_VERSION_HEX < 0x03000000
-LIBSHIBOKEN_API PyObject *PyDict_GetItemWithError(PyObject *mp, PyObject *key);
-#endif
-
-/*****************************************************************************
- *
* RESOLVED: methodobject.h
*
*/
@@ -524,12 +509,9 @@ LIBSHIBOKEN_API PyObject *PyStaticMethod_New(PyObject *callable);
#else
#define PepStaticMethod_TypePtr &PyStaticMethod_Type
#endif
+
// Although not PEP specific, we resolve this similar issue, here:
-#if PY_VERSION_HEX < 0x03000000
-extern LIBSHIBOKEN_API PyTypeObject *PepMethodDescr_TypePtr;
-#else
#define PepMethodDescr_TypePtr &PyMethodDescr_Type
-#endif
/*****************************************************************************
*
@@ -546,18 +528,6 @@ LIBSHIBOKEN_API PyObject *PepRun_GetResult(const char *command);
/*****************************************************************************
*
- * Python 2 incompatibilities
- *
- * This is incompatibly implemented as macro in Python 2.
- */
-#if PY_VERSION_HEX < 0x03000000
-extern LIBSHIBOKEN_API PyObject *PepMapping_Items(PyObject *o);
-#else
-#define PepMapping_Items PyMapping_Items
-#endif
-
-/*****************************************************************************
- *
* Runtime support for Python 3.8 incompatibilities
*
*/