[TD] remove Py2 code from TD
This commit is contained in:
@@ -72,11 +72,7 @@ PyObject* DrawProjGroupPy::removeProjection(PyObject* args)
|
||||
DrawProjGroup* projGroup = getDrawProjGroupPtr();
|
||||
int i = projGroup->removeProjection(projType);
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return PyInt_FromLong((long) i);
|
||||
#else
|
||||
return PyLong_FromLong((long) i);
|
||||
#endif
|
||||
}
|
||||
|
||||
PyObject* DrawProjGroupPy::purgeProjections(PyObject* /*args*/)
|
||||
@@ -84,11 +80,7 @@ PyObject* DrawProjGroupPy::purgeProjections(PyObject* /*args*/)
|
||||
DrawProjGroup* projGroup = getDrawProjGroupPtr();
|
||||
int i = projGroup->purgeProjections();
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return PyInt_FromLong((long) i);
|
||||
#else
|
||||
return PyLong_FromLong((long) i);
|
||||
#endif
|
||||
}
|
||||
|
||||
PyObject* DrawProjGroupPy::getItemByLabel(PyObject* args)
|
||||
|
||||
Reference in New Issue
Block a user