Show More
@@ -571,7 +571,7 b' class Inspector:' | |||
|
571 | 571 | # Flush the source cache because inspect can return out-of-date |
|
572 | 572 | # source |
|
573 | 573 | linecache.checkcache() |
|
574 |
source |
|
|
574 | source = None | |
|
575 | 575 | try: |
|
576 | 576 | try: |
|
577 | 577 | src = getsource(obj,binary_file) |
@@ -581,10 +581,11 b' class Inspector:' | |||
|
581 | 581 | if src is not None: |
|
582 | 582 | source = self.format(src) |
|
583 | 583 | out['source'] = source.rstrip() |
|
584 | source_success = True | |
|
585 | 584 | except Exception: |
|
586 |
|
|
|
587 | out['docstring'] = ds | |
|
585 | pass | |
|
586 | ||
|
587 | if ds and source is None: | |
|
588 | out['docstring'] = ds | |
|
588 | 589 | |
|
589 | 590 | |
|
590 | 591 | # Constructor docstring for classes |
General Comments 0
You need to be logged in to leave comments.
Login now