Skip to content

Commit 388eafb

Browse files
pyldap contributorsencukou
authored andcommitted
Modules: Python 3, alias PyInt to PyLong
1 parent fa35757 commit 388eafb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,11 @@
2727
void LDAPadd_methods( PyObject*d, PyMethodDef*methods );
2828
#define PyNone_Check(o) ((o) == Py_None)
2929

30+
/* Py2/3 compatibility */
31+
#if PY_VERSION_HEX >= 0x03000000
32+
/* In Python 3, alias PyInt to PyLong */
33+
#define PyInt_FromLong PyLong_FromLong
34+
#endif
35+
3036
#endif /* __h_common_ */
3137

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy