forked from openlp/openlp
renamed variable and parameter
This commit is contained in:
parent
53c584ede4
commit
66c1f7c5da
@ -119,15 +119,15 @@ class CategoryActionList(object):
|
|||||||
self.actions.append((weight, action))
|
self.actions.append((weight, action))
|
||||||
self.actions.sort(key=lambda act: act[0])
|
self.actions.sort(key=lambda act: act[0])
|
||||||
|
|
||||||
def remove(self, remove_action):
|
def remove(self, action):
|
||||||
"""
|
"""
|
||||||
Remove an action
|
Remove an action
|
||||||
"""
|
"""
|
||||||
for action in self.actions:
|
for item in self.actions:
|
||||||
if action[1] == remove_action:
|
if item[1] == action:
|
||||||
self.actions.remove(action)
|
self.actions.remove(item)
|
||||||
return
|
return
|
||||||
raise ValueError('Action "%s" does not exist.' % remove_action)
|
raise ValueError('Action "%s" does not exist.' % action)
|
||||||
|
|
||||||
|
|
||||||
class CategoryList(object):
|
class CategoryList(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user