diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-16 09:00:37 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-16 09:00:37 +0200 |
commit | d79b106361a85439024decb5ba81a00b6b93aba7 (patch) | |
tree | c3165740b86469622fe83f48dfca6574c769e3d4 /src/plugins | |
parent | 319abf4fd04df049997dacf9ee02bee1eac5d193 (diff) | |
download | weechat-d79b106361a85439024decb5ba81a00b6b93aba7.zip |
python: remove functions defined for Python < 2.6
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/python/weechat-python.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/python/weechat-python.h b/src/plugins/python/weechat-python.h index 3fca74dab..da7a3dc13 100644 --- a/src/plugins/python/weechat-python.h +++ b/src/plugins/python/weechat-python.h @@ -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; |