Show More
@@ -326,6 +326,8 b' def find_source_lines(obj):' | |||||
326 | # For instances, try the class object like getsource() does |
|
326 | # For instances, try the class object like getsource() does | |
327 | if hasattr(obj, '__class__'): |
|
327 | if hasattr(obj, '__class__'): | |
328 | lineno = inspect.getsourcelines(obj.__class__)[1] |
|
328 | lineno = inspect.getsourcelines(obj.__class__)[1] | |
|
329 | else: | |||
|
330 | lineno = None | |||
329 | except: |
|
331 | except: | |
330 | return None |
|
332 | return None | |
331 |
|
333 |
General Comments 0
You need to be logged in to leave comments.
Login now