From dd167b4c8393677f465c03d66b438d519c43fb87 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 15 Apr 2022 13:43:22 -0500 Subject: python: Fix API break in hook_timer() Closes #2691 --- plugins/python/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/python/python.py b/plugins/python/python.py index 1adcde98..0420a4e2 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -284,7 +284,7 @@ def _on_server_attrs_hook(word, word_eol, attrs, userdata): @ffi.def_extern() def _on_timer_hook(userdata): hook = ffi.from_handle(userdata) - if hook.callback(hook.userdata) is True: + if hook.callback(hook.userdata) == True: return 1 hook.is_unload = True # Don't unhook -- cgit 1.4.1