Move some things from x.foo.foo to x.foo (__init__.py)

This commit is contained in:
Florian Bruhin 2014-01-21 15:46:29 +01:00
parent bf33836dcf
commit d56344f46a
4 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,10 @@ def register_all():
"""Register and initialize all commands."""
# We do this here to avoid a circular import, since commands.commands
# imports Command from this module.
import qutebrowser.commands.commands
import qutebrowser.commands
for (name, cls) in inspect.getmembers(
qutebrowser.commands.commands, (lambda o: inspect.isclass(o) and
o.__module__ == 'qutebrowser.commands.commands')):
qutebrowser.commands, (lambda o: inspect.isclass(o) and
o.__module__ == 'qutebrowser.commands')):
obj = cls()
if isinstance(obj.name, str):
names = [obj.name]

View File

@ -1,6 +1,6 @@
from PyQt5.QtWidgets import QMainWindow, QVBoxLayout, QWidget
from qutebrowser.widgets.statusbar.statusbar import StatusBar
from qutebrowser.widgets.statusbar import StatusBar
from qutebrowser.widgets.browser import TabbedBrowser
class MainWindow(QMainWindow):