This commit is contained in:
gwen 2013-02-25 16:24:30 +01:00
parent eb632c002d
commit 8be48e5eba

View file

@ -67,7 +67,7 @@ class Config(object):
self._cfgimpl_toplevel = self._cfgimpl_get_toplevel()
# some api members shall not be used as option's names !
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("_")]
self._cfgimpl_build()
@ -325,6 +325,7 @@ class Config(object):
def get_warnings(self):
"Config implements its own warning pile"
return self._cfgimpl_get_toplevel()._cfgimpl_warnings
# ____________________________________________________________
def getkey(self):
return self._cfgimpl_descr.getkey(self)
@ -341,6 +342,7 @@ class Config(object):
def __ne__(self, other):
"Config comparison"
return not self == other
# ______________________________________________________________________
def __iter__(self):
"""Pythonesque way of parsing group's ordered options.