We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b685969 commit b7fcd18Copy full SHA for b7fcd18
intercom/generic_handlers/base_handler.py
@@ -10,16 +10,9 @@ def __getattr__(cls, name): # noqa
10
if name[0] == "_":
11
return
12
13
- import time
14
- a = time.time()
15
# get the class heirarchy
16
klasses = inspect.getmro(cls)
17
- b = time.time()
18
# find a class that can handle this attr
19
for klass in klasses:
20
if hasattr(klass, 'handles_attr') and klass.handles_attr(name):
21
- c = time.time()
22
- d = b - a
23
- e = c - b
24
- print("GETMRO %s HANDLE %s" % (d, e))
25
return klass._get(cls, name)
0 commit comments