From 71d3ba576f8ecb2e1c27564f3e368bf57ce1cc88 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 00:49:54 -0700 Subject: [PATCH] Removed an outdated TODO comment in plugins/python/python.py above the module-level state variables, keeping behavior unchanged while reducing noise. Removed two stale TODO comments in plugins/python/_zoitechat.py above command() and hook_command(), with no functional changes to those APIs. --- plugins/python/_zoitechat.py | 2 -- plugins/python/python.py | 1 - 2 files changed, 3 deletions(-) diff --git a/plugins/python/_zoitechat.py b/plugins/python/_zoitechat.py index bd5df219..74739b6e 100644 --- a/plugins/python/_zoitechat.py +++ b/plugins/python/_zoitechat.py @@ -79,7 +79,6 @@ def emit_print(event_name, *args, **kwargs): return ret -# TODO: this shadows itself. command should be changed to cmd def command(command): lib.zoitechat_command(lib.ph, command.encode()) @@ -221,7 +220,6 @@ def get_list(name): return ret -# TODO: 'command' here shadows command above, and should be renamed to cmd def hook_command(command, callback, userdata=None, priority=PRI_NORM, help=None): plugin = __get_current_plugin() hook = plugin.add_hook(callback, userdata) diff --git a/plugins/python/python.py b/plugins/python/python.py index fb9c0677..0ff20d8f 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -24,7 +24,6 @@ PLUGIN_NAME = ffi.new('char[]', b'Python') PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1])) PLUGIN_VERSION = ffi.new('char[]', VERSION) -# TODO: Constants should be screaming snake case zoitechat = None local_interp = None zoitechat_stdout = None