diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 16:28:12 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-07-14 19:14:35 -0700 |
commit | 52287434f824732c52ba21b771a9626c312ca4e9 (patch) | |
tree | 246277b4c7833000f68125c0e65bd85503074931 /src/block_template.c | |
parent | ab8fc54acaa511d224a9855f9cfc253e7d280547 (diff) | |
download | pycrypto-52287434f824732c52ba21b771a9626c312ca4e9.tar.gz |
Py3k cleanup: PyInt_CheckExact & PyInt_AS_LONG
Diffstat (limited to 'src/block_template.c')
-rw-r--r-- | src/block_template.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/block_template.c b/src/block_template.c index 869df41..c2c711f 100644 --- a/src/block_template.c +++ b/src/block_template.c @@ -67,10 +67,6 @@ typedef struct /* Please see PEP3123 for a discussion of PyObject_HEAD and changes made in 3.x to make it conform to Standard C. * These changes also dictate using Py_TYPE to check type, and PyVarObject_HEAD_INIT(NULL, 0) to initialize */ -#ifdef IS_PY3K -#define PyInt_CheckExact PyLong_CheckExact -#define PyInt_AS_LONG PyLong_AS_LONG -#endif staticforward PyTypeObject ALGtype; static ALGobject * @@ -751,13 +747,6 @@ static struct PyModuleDef moduledef = { #endif /* Initialization function for the module */ - -/* Deal with old API in Python 2.1 */ -#if PYTHON_API_VERSION < 1011 -#define PyInt_CheckExact PyInt_Check -#endif - - #ifdef IS_PY3K PyMODINIT_FUNC #else |