Rename package-private modules to _foo.py

This commit is contained in:
Florian Bruhin 2014-04-25 11:50:30 +02:00
parent 47d8777179
commit 937196e287
20 changed files with 19 additions and 21 deletions

1
TODO
View File

@ -24,7 +24,6 @@ decorators for often-used signals from singletons?
- @on_config_changed('colors')
- @on_enter_mode('hints')
find better names for *Parser/*Manager
Use _foo.py for modules only used in subpackage?
Use py3.4 Enums with a backport to qutebrowser.utils?
Simplify using of modes (e.g. enter_mode hint instead of :hint)

View File

@ -63,7 +63,6 @@ from qutebrowser.commands.parsers import CommandParser, SearchParser
from qutebrowser.utils.appdirs import AppDirs
from qutebrowser.utils.misc import dotted_getattr
from qutebrowser.utils.debug import set_trace # pylint: disable=unused-import
from qutebrowser.config.conftypes import ValidationError
class QuteBrowser(QApplication):
@ -110,7 +109,7 @@ class QuteBrowser(QApplication):
confdir = self._args.confdir
try:
config.init(confdir)
except ValidationError as e:
except config.ValidationError as e:
msgbox = QMessageBox(
QMessageBox.Critical,
"Error while reading config!",

View File

@ -19,7 +19,7 @@
import logging
from qutebrowser.commands.exceptions import (ArgumentCountError,
from qutebrowser.commands._exceptions import (ArgumentCountError,
InvalidModeError)
from PyQt5.QtCore import pyqtSignal, QObject

View File

@ -23,7 +23,7 @@ from PyQt5.QtWebKitWidgets import QWebPage
import qutebrowser.config.config as config
import qutebrowser.commands.utils as cmdutils
import qutebrowser.utils.message as message
from qutebrowser.commands.exceptions import (
from qutebrowser.commands._exceptions import (
ArgumentCountError, NoSuchCommandError, InvalidModeError)

View File

@ -24,7 +24,7 @@ Module attributes:
import inspect
from collections import Iterable
from qutebrowser.commands.command import Command
from qutebrowser.commands._command import Command
cmd_dict = {}

View File

@ -19,7 +19,7 @@
from collections import OrderedDict, ChainMap
from qutebrowser.config.value import SettingValue
from qutebrowser.config._value import SettingValue
class Section:

View File

@ -40,10 +40,10 @@ from PyQt5.QtCore import pyqtSignal, QObject
import qutebrowser.config.configdata as configdata
import qutebrowser.commands.utils as cmdutils
import qutebrowser.utils.message as message
from qutebrowser.config.conftypes import ValidationError
from qutebrowser.config.iniparsers import (ReadConfigParser,
from qutebrowser.config._conftypes import ValidationError
from qutebrowser.config._iniparsers import (ReadConfigParser,
ReadWriteConfigParser)
from qutebrowser.config.lineparser import LineConfigParser
from qutebrowser.config._lineparser import LineConfigParser
instance = None
state = None

View File

@ -26,9 +26,9 @@ DATA: The config defaults, an OrderedDict of sections.
from collections import OrderedDict
from qutebrowser.config.value import SettingValue
import qutebrowser.config.conftypes as types
import qutebrowser.config.sections as sect
from qutebrowser.config._value import SettingValue
import qutebrowser.config._conftypes as types
import qutebrowser.config._sections as sect
FIRST_COMMENT = """

View File

@ -25,7 +25,7 @@ Module attributes:
import logging
import cgi
from qutebrowser.network.schemehandler import (SchemeHandler,
from qutebrowser.network._schemehandler import (SchemeHandler,
SpecialNetworkReply)
from qutebrowser.utils.version import version
from qutebrowser.utils.url import urlstring

View File

@ -28,7 +28,7 @@ import qutebrowser.utils.url as urlutils
import qutebrowser.utils.message as message
import qutebrowser.config.config as config
import qutebrowser.commands.utils as cmdutils
from qutebrowser.widgets.tabwidget import TabWidget
from qutebrowser.widgets._tabwidget import TabWidget
from qutebrowser.widgets.browsertab import BrowserTab
from qutebrowser.browser.signalfilter import SignalFilter
from qutebrowser.browser.curcommand import CurCommandDispatcher

View File

@ -24,9 +24,9 @@ from PyQt5.QtCore import pyqtSlot, QRect, QPoint
from PyQt5.QtWidgets import QWidget, QVBoxLayout
from PyQt5.QtWebKitWidgets import QWebInspector
from qutebrowser.widgets.statusbar import StatusBar
from qutebrowser.widgets.tabbedbrowser import TabbedBrowser
from qutebrowser.widgets.completion import CompletionView
from qutebrowser.widgets._statusbar import StatusBar
from qutebrowser.widgets._tabbedbrowser import TabbedBrowser
from qutebrowser.widgets._completion import CompletionView
import qutebrowser.commands.utils as cmdutils
import qutebrowser.config.config as config