Fix style issues
This commit is contained in:
parent
09d94bddfe
commit
98d15de460
@ -46,8 +46,6 @@ class register:
|
||||
|
||||
"""
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
def __init__(self, instance=None, name=None, nargs=None, split_args=True,
|
||||
hide=False):
|
||||
"""Gets called on parse-time with the decorator arguments.
|
||||
|
@ -25,7 +25,7 @@ from collections import OrderedDict
|
||||
from configparser import (ConfigParser, ExtendedInterpolation, NoSectionError,
|
||||
NoOptionError)
|
||||
|
||||
from qutebrowser.utils.misc import read_file
|
||||
#from qutebrowser.utils.misc import read_file
|
||||
import qutebrowser.config.options as opt
|
||||
import qutebrowser.config.sections as sect
|
||||
|
||||
@ -45,7 +45,8 @@ def init(confdir):
|
||||
"""
|
||||
global config, state
|
||||
logging.debug("Config init, confdir {}".format(confdir))
|
||||
#config = Config(confdir, 'qutebrowser.conf', read_file('qutebrowser.conf'))
|
||||
#config = Config(confdir, 'qutebrowser.conf',
|
||||
# read_file('qutebrowser.conf'))
|
||||
config = NewConfig()
|
||||
state = Config(confdir, 'state', always_save=True)
|
||||
|
||||
@ -135,11 +136,18 @@ class NewConfig:
|
||||
return val.value
|
||||
|
||||
def save(self):
|
||||
# FIXME
|
||||
"""Save the config file."""
|
||||
# FIXME to be implemented
|
||||
pass
|
||||
|
||||
def dump_userconfig(self):
|
||||
# FIXME
|
||||
"""Get the part of the config which was changed by the user.
|
||||
|
||||
Return:
|
||||
The changed config part as string.
|
||||
|
||||
"""
|
||||
# FIXME to be implemented
|
||||
pass
|
||||
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
"""Templates for setting options."""
|
||||
|
||||
import logging
|
||||
from collections import OrderedDict
|
||||
|
||||
import qutebrowser.commands.utils as cmdutils
|
||||
|
@ -96,7 +96,7 @@ class CompletionView(QTreeView):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self._enabled = config.config.getboolean('general', 'show_completion')
|
||||
self._enabled = config.config.get('general', 'show_completion')
|
||||
self._completion_models = {}
|
||||
self._completion_models[''] = None
|
||||
self._completion_models['command'] = CommandCompletionModel()
|
||||
|
@ -59,6 +59,7 @@ options = {
|
||||
'global-statement',
|
||||
'no-init',
|
||||
'too-many-arguments',
|
||||
'too-few-public-methods',
|
||||
# visual noise
|
||||
'locally-disabled',
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user