Commit 3710b7fe authored by Tres Seaver's avatar Tres Seaver

Harden module-crawling against trickery performed by six.

parent b3c77bbd
......@@ -150,6 +150,10 @@ class DebugManager(Item, Implicit):
# return class reference info
counts = {}
for m in sys.modules.values():
if m is None:
continue
if m.__name__.startswith('six'):
continue
for sym in dir(m):
ob = getattr(m, sym)
if type(ob) in t:
......
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