Minor tweak to how cmdsets are matched with the "in" operator.
This commit is contained in:
parent
6e08c011a1
commit
9f9dadd4eb
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ class CmdSet(object):
|
||||||
Returns True if this cmdset contains the given command (as defined
|
Returns True if this cmdset contains the given command (as defined
|
||||||
by command name and aliases). This allows for things like 'if cmd in cmdset'
|
by command name and aliases). This allows for things like 'if cmd in cmdset'
|
||||||
"""
|
"""
|
||||||
return any(cmd == othercmd for cmd in self.commands)
|
return othercmd in self.commands
|
||||||
|
|
||||||
def __add__(self, cmdset_b):
|
def __add__(self, cmdset_b):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue