Skip to content

Commit b7fcd18

Browse files
committed
Removing some timing code.
1 parent b685969 commit b7fcd18

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

intercom/generic_handlers/base_handler.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,9 @@ def __getattr__(cls, name): # noqa
1010
if name[0] == "_":
1111
return
1212

13-
import time
14-
a = time.time()
1513
# get the class heirarchy
1614
klasses = inspect.getmro(cls)
17-
b = time.time()
1815
# find a class that can handle this attr
1916
for klass in klasses:
2017
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))
2518
return klass._get(cls, name)

0 commit comments

Comments
 (0)