Merge branch 'master' of https://github.com/jcorentin/qutebrowser into jcorentin-master

This commit is contained in:
Florian Bruhin 2015-12-04 18:32:46 +01:00
commit c319b524bf
2 changed files with 5 additions and 1 deletions

View File

@ -619,7 +619,7 @@ class ConfigManager(QObject):
optname = self.optionxform(optname)
existed = optname in sectdict
if existed:
del sectdict[optname]
sectdict.delete(optname)
# WORKAROUND for https://bitbucket.org/logilab/pylint/issues/659/
self.get.cache_clear() # pylint: disable=no-member
return existed

View File

@ -72,6 +72,10 @@ class Section:
"""Get value keys."""
return self.values.keys()
def delete(self, key):
"""Delete item with given key."""
del self.values[key]
def setv(self, layer, key, value, interpolated):
"""Set the value on a layer.