Typo in modules/command.py, 'is' -> 'if'

This commit is contained in:
jesopo 2018-10-28 11:53:31 +00:00
parent ec72787f86
commit 5553ac9e49

View file

@ -205,7 +205,7 @@ class Module(ModuleManager.BaseModule):
return hook.get_kwarg("help", None) or hook.docstring.description return hook.get_kwarg("help", None) or hook.docstring.description
def _get_usage(self, hook, command): def _get_usage(self, hook, command):
usage = hook.get_kwarg("usage", None) usage = hook.get_kwarg("usage", None)
is not usage: if not usage:
usages = hook.docstring.var_items.get("usage", None) usages = hook.docstring.var_items.get("usage", None)
if usages: if usages:
return " | ".join( return " | ".join(