get rid of unused self
@@ -139,7 +139,8 @@ class MainForm(npyscreen.FormBaseNewWithMenus):
os.chdir(current_path)
return
- def core_tools(self, action):
+ @staticmethod
+ def core_tools(action):
""" Perform actions for core tools """
def diff(first, second):
"""
@@ -379,7 +380,7 @@ class MainForm(npyscreen.FormBaseNewWithMenus):
# Core Tools Menu Items
self.m2 = self.add_menu(name="Core Tools", shortcut="c")
self.m2.addItem(text='Add all latest core tools',
- onSelect=self.core_tools,
+ onSelect=MainForm.core_tools,
arguments=['install'], shortcut='i')
self.m2.addItem(text='Build core tools',
onSelect=self.perform_action,
