Minor tweak to how cmdsets are matched with the "in" operator.

This commit is contained in:
Griatch 2012-04-26 19:31:03 +02:00
parent 6e08c011a1
commit 9f9dadd4eb

View file

@ -222,7 +222,7 @@ class CmdSet(object):
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'
"""
return any(cmd == othercmd for cmd in self.commands)
return othercmd in self.commands
def __add__(self, cmdset_b):
"""