mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
python: remove functions defined for Python < 2.6
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user