didnot getattr a second time in find if not needed
This commit is contained in:
parent
ff7714d8d3
commit
d2f101b7bb
1 changed files with 3 additions and 3 deletions
|
@ -325,15 +325,15 @@ class SubConfig(object):
|
||||||
continue
|
continue
|
||||||
if not _filter_by_value():
|
if not _filter_by_value():
|
||||||
continue
|
continue
|
||||||
|
if not _filter_by_type():
|
||||||
|
continue
|
||||||
#remove option with propertyerror, ...
|
#remove option with propertyerror, ...
|
||||||
if check_properties:
|
if byvalue is None and check_properties:
|
||||||
try:
|
try:
|
||||||
value = getattr(self, path)
|
value = getattr(self, path)
|
||||||
except PropertiesOptionError:
|
except PropertiesOptionError:
|
||||||
# a property restricts the access of the value
|
# a property restricts the access of the value
|
||||||
continue
|
continue
|
||||||
if not _filter_by_type():
|
|
||||||
continue
|
|
||||||
if type_ == 'value':
|
if type_ == 'value':
|
||||||
retval = value
|
retval = value
|
||||||
elif type_ == 'path':
|
elif type_ == 'path':
|
||||||
|
|
Loading…
Reference in a new issue