pep8
This commit is contained in:
parent
eb632c002d
commit
8be48e5eba
|
@ -67,7 +67,7 @@ class Config(object):
|
||||||
self._cfgimpl_toplevel = self._cfgimpl_get_toplevel()
|
self._cfgimpl_toplevel = self._cfgimpl_get_toplevel()
|
||||||
# some api members shall not be used as option's names !
|
# some api members shall not be used as option's names !
|
||||||
methods = getmembers(self, ismethod)
|
methods = getmembers(self, ismethod)
|
||||||
self._cfgimpl_slots = [key for key, value in methods \
|
self._cfgimpl_slots = [key for key, value in methods
|
||||||
if not key.startswith("_")]
|
if not key.startswith("_")]
|
||||||
self._cfgimpl_build()
|
self._cfgimpl_build()
|
||||||
|
|
||||||
|
@ -325,6 +325,7 @@ class Config(object):
|
||||||
def get_warnings(self):
|
def get_warnings(self):
|
||||||
"Config implements its own warning pile"
|
"Config implements its own warning pile"
|
||||||
return self._cfgimpl_get_toplevel()._cfgimpl_warnings
|
return self._cfgimpl_get_toplevel()._cfgimpl_warnings
|
||||||
|
|
||||||
# ____________________________________________________________
|
# ____________________________________________________________
|
||||||
def getkey(self):
|
def getkey(self):
|
||||||
return self._cfgimpl_descr.getkey(self)
|
return self._cfgimpl_descr.getkey(self)
|
||||||
|
@ -341,6 +342,7 @@ class Config(object):
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"Config comparison"
|
"Config comparison"
|
||||||
return not self == other
|
return not self == other
|
||||||
|
|
||||||
# ______________________________________________________________________
|
# ______________________________________________________________________
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
"""Pythonesque way of parsing group's ordered options.
|
"""Pythonesque way of parsing group's ordered options.
|
||||||
|
@ -350,7 +352,7 @@ class Config(object):
|
||||||
try:
|
try:
|
||||||
yield child._name, getattr(self, child._name)
|
yield child._name, getattr(self, child._name)
|
||||||
except:
|
except:
|
||||||
pass # option with properties
|
pass # option with properties
|
||||||
|
|
||||||
def iter_groups(self, group_type=None):
|
def iter_groups(self, group_type=None):
|
||||||
"""iteration on groups objects only.
|
"""iteration on groups objects only.
|
||||||
|
@ -409,9 +411,9 @@ class Config(object):
|
||||||
paths.append(path)
|
paths.append(path)
|
||||||
except PropertiesOptionError:
|
except PropertiesOptionError:
|
||||||
if allpaths:
|
if allpaths:
|
||||||
paths.append(path) # option which have properties added
|
paths.append(path) # option which have properties added
|
||||||
else:
|
else:
|
||||||
paths.append(path)
|
paths.append(path)
|
||||||
return paths
|
return paths
|
||||||
|
|
||||||
def _find(self, bytype, byname, byvalue, byattrs, first):
|
def _find(self, bytype, byname, byvalue, byattrs, first):
|
||||||
|
|
Loading…
Reference in New Issue