diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2019-08-07 12:02:25 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2019-08-12 09:54:44 +0300 |
commit | aa71073ca5babbf48dbbd768e60aa555365414fe (patch) | |
tree | 1a64247237e38ef1b1c169dae7eb3d3cb905c123 /python/rpmsystem-py.h | |
parent | 67f8f2b01d00f03f2d6c072fb2697d3860abe47b (diff) | |
download | rpm-aa71073ca5babbf48dbbd768e60aa555365414fe.tar.gz |
Replace all PyInt_* uses with PyLong_* in the codebase
Up to now we handled this via Python 3 compatibility defines in
rpmsystem-py.h but now that Python 2 is no longer supported, actually
update the codebase. No functional changes.
Diffstat (limited to 'python/rpmsystem-py.h')
-rw-r--r-- | python/rpmsystem-py.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h index e6fdbfe24..5064e0831 100644 --- a/python/rpmsystem-py.h +++ b/python/rpmsystem-py.h @@ -9,16 +9,6 @@ #include <Python.h> #include <structmember.h> -/* For Python 3, use the PyLong type throughout in place of PyInt */ -#if PY_MAJOR_VERSION >= 3 -#define PyInt_Check PyLong_Check -#define PyInt_AsLong PyLong_AsLong -#define PyInt_FromLong PyLong_FromLong -#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask -#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask -#define PyInt_AsSsize_t PyLong_AsSsize_t -#endif - PyObject * utf8FromString(const char *s); #endif /* H_SYSTEM_PYTHON */ |