lint fixes
This commit is contained in:
parent
3f7635619a
commit
4b0b9d884c
@ -160,8 +160,8 @@ class Config:
|
||||
lines.append(keyval)
|
||||
return lines
|
||||
|
||||
def has_option(section, option):
|
||||
"""Returns True if option is in section."""
|
||||
def has_option(self, section, option):
|
||||
"""Return True if option is in section."""
|
||||
return option in self.config[section]
|
||||
|
||||
@cmdutils.register(name='get', instance='config', completion=['setting'],
|
||||
@ -291,9 +291,7 @@ class SectionProxy(configparser.SectionProxy):
|
||||
raise NotImplementedError
|
||||
|
||||
def __contains__(self, key):
|
||||
# TODO
|
||||
#return self._parser.has_option(self._name, key)
|
||||
raise NotImplementedError
|
||||
return self._parser.has_option(self._name, key)
|
||||
|
||||
def _options(self):
|
||||
# TODO
|
||||
|
@ -22,6 +22,7 @@ import qutebrowser.config.config as config
|
||||
_colordict = None
|
||||
_fontdict = None
|
||||
|
||||
|
||||
def get_stylesheet(template):
|
||||
"""Format a stylesheet based on a template.
|
||||
|
||||
|
@ -23,6 +23,7 @@ from PyQt5.QtCore import Qt, QVariant, QAbstractItemModel, QModelIndex
|
||||
ROLE_MARKS = Qt.UserRole
|
||||
ROLE_FULLTEXT = Qt.UserRole + 1
|
||||
|
||||
|
||||
class CompletionModel(QAbstractItemModel):
|
||||
|
||||
"""A simple tree model based on Python OrderdDict containing tuples.
|
||||
|
Loading…
Reference in New Issue
Block a user