Move some things from x.foo.foo to x.foo (__init__.py)
This commit is contained in:
parent
bf33836dcf
commit
d56344f46a
@ -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]
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user