diff options
Diffstat (limited to 'sources')
| -rw-r--r-- | sources/shiboken6/libshiboken/pep384impl.cpp | 12 | ||||
| -rw-r--r-- | sources/shiboken6/libshiboken/pep384impl.h | 9 |
2 files changed, 0 insertions, 21 deletions
diff --git a/sources/shiboken6/libshiboken/pep384impl.cpp b/sources/shiboken6/libshiboken/pep384impl.cpp index ae1a3bcd9..fd862b7b0 100644 --- a/sources/shiboken6/libshiboken/pep384impl.cpp +++ b/sources/shiboken6/libshiboken/pep384impl.cpp @@ -637,18 +637,6 @@ PyMethod_Self(PyObject *im) } #endif // Py_LIMITED_API -#ifdef PYPY_VERSION - -// PYSIDE-535: PyPy does not differentiate builtin methods and methods. -// But they differ because they have no __module__ attribute. -int PyMethod_Check(PyObject *op) -{ - return PyPyMethod_Check(op) && - PyObject_HasAttr(op, Shiboken::PyMagicName::module()); -} - -#endif - /***************************************************************************** * * Support for funcobject.h diff --git a/sources/shiboken6/libshiboken/pep384impl.h b/sources/shiboken6/libshiboken/pep384impl.h index 32d8d6fa5..134199788 100644 --- a/sources/shiboken6/libshiboken/pep384impl.h +++ b/sources/shiboken6/libshiboken/pep384impl.h @@ -415,15 +415,6 @@ LIBSHIBOKEN_API PyObject *PyMethod_Self(PyObject *); #define PyMethod_GET_FUNCTION(op) PyMethod_Function(op) #endif -#ifdef PYPY_VERSION - -// PYSIDE-535: PyPy does not differentiate builtin methods and methods. -// But they differ because they have no __module__ attribute. -#undef PyMethod_Check -LIBSHIBOKEN_API int PyMethod_Check(PyObject *op); - -#endif - /***************************************************************************** * * RESOLVED: code.h |
