mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
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.
This commit is contained in:
@@ -79,7 +79,6 @@ def emit_print(event_name, *args, **kwargs):
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
# TODO: this shadows itself. command should be changed to cmd
|
|
||||||
def command(command):
|
def command(command):
|
||||||
lib.zoitechat_command(lib.ph, command.encode())
|
lib.zoitechat_command(lib.ph, command.encode())
|
||||||
|
|
||||||
@@ -221,7 +220,6 @@ def get_list(name):
|
|||||||
return ret
|
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):
|
def hook_command(command, callback, userdata=None, priority=PRI_NORM, help=None):
|
||||||
plugin = __get_current_plugin()
|
plugin = __get_current_plugin()
|
||||||
hook = plugin.add_hook(callback, userdata)
|
hook = plugin.add_hook(callback, userdata)
|
||||||
|
|||||||
@@ -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_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1]))
|
||||||
PLUGIN_VERSION = ffi.new('char[]', VERSION)
|
PLUGIN_VERSION = ffi.new('char[]', VERSION)
|
||||||
|
|
||||||
# TODO: Constants should be screaming snake case
|
|
||||||
zoitechat = None
|
zoitechat = None
|
||||||
local_interp = None
|
local_interp = None
|
||||||
zoitechat_stdout = None
|
zoitechat_stdout = None
|
||||||
|
|||||||
Reference in New Issue
Block a user