Show More
@@ -86,9 +86,7 b' def label(code):' | |||||
86 | for k, v in list(sys.modules.iteritems()): |
|
86 | for k, v in list(sys.modules.iteritems()): | |
87 | if v is None: |
|
87 | if v is None: | |
88 | continue |
|
88 | continue | |
89 |
if not |
|
89 | if not isinstance(getattr(v, '__file__', None), str): | |
90 | continue |
|
|||
91 | if not isinstance(v.__file__, str): |
|
|||
92 | continue |
|
90 | continue | |
93 | if v.__file__.startswith(code.co_filename): |
|
91 | if v.__file__.startswith(code.co_filename): | |
94 | mname = _fn2mod[code.co_filename] = k |
|
92 | mname = _fn2mod[code.co_filename] = k |
General Comments 0
You need to be logged in to leave comments.
Login now