Merge pull request #2695 from LMKight/command-list-fix

[MRG+1] command-list-fix
This commit is contained in:
Paul Tremberth 2017-04-05 16:21:57 +02:00 committed by GitHub
commit 252819151e
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ def _iter_command_classes(module_name):
for obj in vars(module).values():
if inspect.isclass(obj) and \
issubclass(obj, ScrapyCommand) and \
obj.__module__ == module.__name__:
obj.__module__ == module.__name__ and \
not obj == ScrapyCommand:
yield obj
def _get_commands_from_module(module, inproject):