pep8
This commit is contained in:
@ -185,12 +185,12 @@ class Settings(object):
|
||||
|
||||
def __init__(self, context, storage):
|
||||
"""
|
||||
initializer
|
||||
|
||||
initializer
|
||||
|
||||
:param context: the root config
|
||||
:param storage: the storage type
|
||||
|
||||
- dictionnary -> in memory
|
||||
:param storage: the storage type
|
||||
|
||||
- dictionnary -> in memory
|
||||
- sqlite3 -> persistent
|
||||
"""
|
||||
# generic owner
|
||||
@ -212,7 +212,7 @@ class Settings(object):
|
||||
#____________________________________________________________
|
||||
# properties methods
|
||||
def __contains__(self, propname):
|
||||
"enables the pythonic 'in' syntaxic sugar"
|
||||
"enables the pythonic 'in' syntaxic sugar"
|
||||
return propname in self._getproperties()
|
||||
|
||||
def __repr__(self):
|
||||
@ -332,7 +332,7 @@ class Settings(object):
|
||||
"").format(opt_or_descr._name,
|
||||
str(props)), props)
|
||||
|
||||
# XXX should rename it to setpermissive, but kept for retro compatibility
|
||||
# XXX should rename it to setpermissive, but kept for retro compatibility
|
||||
def set_permissive(self, permissive, opt=None):
|
||||
if not isinstance(permissive, tuple):
|
||||
raise TypeError(_('permissive must be a tuple'))
|
||||
|
Reference in New Issue
Block a user