Python 3: Oops (see rev 279959f)

This commit is contained in:
Houzéfa Abbasbhay 2014-12-01 17:04:25 +01:00 committed by Benjamin Dauvergne
parent 4c79280ed8
commit e325164c8a
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ MOD_INIT(_lasso)
{
PyObject *m, *d;
#if PY_MAJOR_VERSION < 2
#if PY_MAJOR_VERSION <= 2
/// @todo Seg-faults on Python 3...
if (PyType_Ready(&PyGObjectPtrType) < 0)
return MOD_ERROR_VAL;
@ -33,7 +33,7 @@ MOD_INIT(_lasso)
lasso_wrapper_key = g_quark_from_static_string("PyLasso::wrapper");
#if PY_MAJOR_VERSION < 2
#if PY_MAJOR_VERSION <= 2
/// @todo Seg-faults on Python 3...
Py_INCREF(&PyGObjectPtrType);
PyModule_AddObject(m, "PyGObjectPtr", (PyObject *)&PyGObjectPtrType);