Tidied python plugins
Use private naming convention Move local callback functions to top
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import prof
|
||||
import platform
|
||||
|
||||
def prof_init(version, status):
|
||||
prof.register_command("/platform", 0, 0, "/platform", "Output system information.", "Output system information", cmd_platform)
|
||||
|
||||
def cmd_platform():
|
||||
def _cmd_platform():
|
||||
result_summary = platform.platform()
|
||||
prof.cons_show(result_summary)
|
||||
|
||||
def prof_init(version, status):
|
||||
prof.register_command("/platform", 0, 0, "/platform", "Output system information.", "Output system information", _cmd_platform)
|
||||
|
||||
Reference in New Issue
Block a user