diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 16:17:01 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 19:14:35 -0700 |
commit | ea2cf0afd8ccbaa406b107285648e024bc900b64 (patch) | |
tree | 690b33a3e056246b3800ae9dd44ff504da4dace7 /src/_counter.c | |
parent | 7e09a5fb6c2db866b3fc7e4d27cdbbe3ac795cc8 (diff) | |
download | pycrypto-ea2cf0afd8ccbaa406b107285648e024bc900b64.tar.gz |
Py3k cleanup: PyModule_AddIntConstant
Diffstat (limited to 'src/_counter.c')
-rw-r--r-- | src/_counter.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/_counter.c b/src/_counter.c index 2bd33ae..7ab8b95 100644 --- a/src/_counter.c +++ b/src/_counter.c @@ -28,13 +28,6 @@ #include <string.h> #include "_counter.h" -/* 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 - /* NB: This can be called multiple times for a given object, via the __init__ method. Be careful. */ static int CounterObject_init(PCT_CounterObject *self, PyObject *args, PyObject *kwargs) |