From 7f8718c3c8a191fa585192d8eb75bbc96f38184f Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 9 Jan 2006 17:44:59 +0000 Subject: [PATCH] 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 --- Lib/python/pyrun.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index f5a3c2de6..fc2a27e10 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -835,7 +835,7 @@ SWIG_Python_GetSwigThis(PyObject *pyobj) return (PySwigObject *) pyobj; } else { 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)) { obj = _PyInstance_Lookup(pyobj, SWIG_This()); } else {