fix missing _PyInstance_Lookup for versions < 2.3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1426e648eb
commit
7f8718c3c8
1 changed files with 1 additions and 1 deletions
|
|
@ -835,7 +835,7 @@ SWIG_Python_GetSwigThis(PyObject *pyobj)
|
||||||
return (PySwigObject *) pyobj;
|
return (PySwigObject *) pyobj;
|
||||||
} else {
|
} else {
|
||||||
PyObject *obj = 0;
|
PyObject *obj = 0;
|
||||||
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && !(PY_VERSION_HEX < 0x02020000))
|
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
|
||||||
if (PyInstance_Check(pyobj)) {
|
if (PyInstance_Check(pyobj)) {
|
||||||
obj = _PyInstance_Lookup(pyobj, SWIG_This());
|
obj = _PyInstance_Lookup(pyobj, SWIG_This());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue