'getattr' in optiondescription can return a bound method

This commit is contained in:
2014-04-15 21:48:31 +02:00
parent 7c8164090a
commit 6d8137160c
3 changed files with 15 additions and 4 deletions

View File

@ -234,7 +234,7 @@ class SubConfig(object):
name, force_permissive=force_permissive)
return homeconfig.getattr(name, force_permissive=force_permissive,
validate=validate)
opt_or_descr = getattr(self.cfgimpl_get_description(), name)
opt_or_descr = self.cfgimpl_get_description().__getattr__(name)
if self._impl_path is None:
subpath = name
else: