Commit 1ffe4857 by Tom Christie

Support callable attributes in dotted source. Closes #2142.

parent 2647e1aa
......@@ -68,8 +68,8 @@ def get_attribute(instance, attrs):
return instance[attr]
except (KeyError, TypeError, AttributeError):
raise exc
if is_simple_callable(instance):
return instance()
if is_simple_callable(instance):
return instance()
return instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment