Fix circular import

This commit is contained in:
Florian Bruhin 2014-01-17 11:28:35 +01:00
parent 04140d9777
commit f61debd2f4

View File

@ -1,10 +1,10 @@
from PyQt5.QtCore import QObject, pyqtSignal
import inspect, sys
import qutebrowser.commands.commands
cmd_dict = {}
def register_all():
import qutebrowser.commands.commands
def is_cmd(obj):
return (inspect.isclass(obj) and
obj.__module__ == 'qutebrowser.commands.commands')