1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

python: remove support of Python 2.x

This commit is contained in:
Sébastien Helleu
2022-10-15 22:56:06 +02:00
parent 7a544d5fcf
commit 319abf4fd0
44 changed files with 92 additions and 575 deletions
-6
View File
@@ -34,13 +34,7 @@
#define PyUnicode_FromString PyString_FromString
#endif /* PY_VERSION_HEX < 0x02060000 */
#if PY_MAJOR_VERSION >= 3
/* check of integer with Python >= 3.x */
#define PY_INTEGER_CHECK(x) (PyLong_Check(x))
#else
/* check of integer with Python <= 2.x */
#define PY_INTEGER_CHECK(x) (PyInt_Check(x) || PyLong_Check(x))
#endif /* PY_MAJOR_VERSION >= 3 */
extern struct t_weechat_plugin *weechat_python_plugin;