[TD] remove Py2 code from TD
This commit is contained in:
@@ -44,11 +44,7 @@ PyObject* DrawPagePy::addView(PyObject* args)
|
||||
DrawView* view = pyView->getDrawViewPtr(); //get DrawView for pyView
|
||||
|
||||
int rc = page->addView(view);
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return PyInt_FromLong((long) rc);
|
||||
#else
|
||||
return PyLong_FromLong((long) rc);
|
||||
#endif
|
||||
}
|
||||
|
||||
PyObject* DrawPagePy::removeView(PyObject* args)
|
||||
@@ -69,11 +65,7 @@ PyObject* DrawPagePy::removeView(PyObject* args)
|
||||
|
||||
int rc = page->removeView(view);
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return PyInt_FromLong((long) rc);
|
||||
#else
|
||||
return PyLong_FromLong((long) rc);
|
||||
#endif
|
||||
}
|
||||
|
||||
PyObject* DrawPagePy::getAllViews(PyObject* args)
|
||||
|
||||
Reference in New Issue
Block a user