summaryrefslogtreecommitdiff
path: root/src/hash_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash_template.c')
-rw-r--r--src/hash_template.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/hash_template.c b/src/hash_template.c
index cc66544..1bc6847 100644
--- a/src/hash_template.c
+++ b/src/hash_template.c
@@ -317,13 +317,6 @@ static struct PyModuleDef moduledef = {
/* Initialize this 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