Commit 079a1c84 by Brian Coca

Merge pull request #12082 from mgedmin/be-faster

Speed up execution
parents efa005c2 44c94328
......@@ -96,7 +96,7 @@ class Base:
@staticmethod
def _generic_g(prop_name, self):
method = "_get_attr_%s" % prop_name
if method in dir(self):
if hasattr(self, method):
return getattr(self, method)()
return self._attributes[prop_name]
......
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