From ea2cf0afd8ccbaa406b107285648e024bc900b64 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sun, 14 Jul 2013 16:17:01 -0700 Subject: Py3k cleanup: PyModule_AddIntConstant --- src/stream_template.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/stream_template.c') diff --git a/src/stream_template.c b/src/stream_template.c index 5456664..9c5a99a 100644 --- a/src/stream_template.c +++ b/src/stream_template.c @@ -300,13 +300,6 @@ static PyTypeObject ALGtype = /* Initialization function for the module */ -/* Deal with old API in Python 2.1 */ -#if PYTHON_API_VERSION < 1011 -#define PyModule_AddIntConstant(m,n,v) {PyObject *o=PyInt_FromLong(v); \ - if (o!=NULL) \ - {PyDict_SetItemString(PyModule_GetDict(m),n,o); Py_DECREF(o);}} -#endif - #ifdef IS_PY3K PyMODINIT_FUNC #else -- cgit v1.2.1