mirror of https://github.com/scrapy/scrapy.git
Merge pull request #2695 from LMKight/command-list-fix
[MRG+1] command-list-fix
This commit is contained in:
commit
252819151e
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue