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

python: remove functions defined for Python < 2.6

This commit is contained in:
Sébastien Helleu
2022-10-16 09:00:37 +02:00
parent 319abf4fd0
commit d79b106361
-8
View File
@@ -26,14 +26,6 @@
#define PYTHON_CURRENT_SCRIPT_NAME ((python_current_script) ? python_current_script->name : "-")
/* define some bytes functions for old python (<= 2.5) */
#if PY_VERSION_HEX < 0x02060000
#define PyBytes_AsString PyString_AsString
#define PyBytes_Check PyString_Check
#define PyBytes_FromString PyString_FromString
#define PyUnicode_FromString PyString_FromString
#endif /* PY_VERSION_HEX < 0x02060000 */
#define PY_INTEGER_CHECK(x) (PyLong_Check(x))
extern struct t_weechat_plugin *weechat_python_plugin;