same arity for _getattr and getattr

This commit is contained in:
Emmanuel Garette 2014-04-01 09:51:25 +02:00
parent 150b490200
commit 0b2e5f90e2

View File

@ -214,10 +214,11 @@ class SubConfig(object):
def __getattr__(self, name):
return self.getattr(name)
def _getattr(self, name):
def _getattr(self, name, force_permissive=False, force_properties=None,
validate=True):
"""use getattr instead of _getattr
"""
return self.getattr(name)
return self.getattr(name, force_permissive, force_properties, validate)
def getattr(self, name, force_permissive=False, force_properties=None,
validate=True):