Fix inspect namespacing

This commit is contained in:
Florian Bruhin 2014-01-17 11:28:46 +01:00
parent f61debd2f4
commit 6e700ba4ad

View File

@ -9,7 +9,8 @@ def register_all():
return (inspect.isclass(obj) and
obj.__module__ == 'qutebrowser.commands.commands')
for (name, cls) in inspect.getmembers(commands, is_cmd):
for (name, cls) in inspect.getmembers(qutebrowser.commands.commands,
is_cmd):
if cls.bind:
if cls.name is None:
name = cls.__name__.tolower()