We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89191d7 commit 426215fCopy full SHA for 426215f
Lib/inspect.py
@@ -969,7 +969,7 @@ def findsource(object):
969
if module:
970
lines = linecache.getlines(file, module.__dict__)
971
if not lines and file.startswith('<') and hasattr(object, "__code__"):
972
- lines = linecache._getlines_from_code(object.__code__, module.__dict__)
+ lines = linecache._getlines_from_code(object.__code__)
973
else:
974
lines = linecache.getlines(file)
975
if not lines:
0 commit comments