diff --git a/src/commands/command.py b/src/commands/command.py index 112ca5c5a0..487b404b1e 100644 --- a/src/commands/command.py +++ b/src/commands/command.py @@ -148,6 +148,10 @@ class Command(object): # probably got a string return cmd in self._matchset + def __ne__(self, cmd): + "The logical negation of __eq__." + return not self.__eq__(cmd) + def __contains__(self, query): """ This implements searches like 'if query in cmd'. It's a fuzzy matching