]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range ...
authorIrit Katriel <iritkatriel@yahoo.com>
Fri, 4 Dec 2020 21:22:03 +0000 (21:22 +0000)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 21:22:03 +0000 (23:22 +0200)
commit2e0760bb2edb595050aff82f236cd32b44d3dfb3
treeefc0a4ef54bbebff196efd1d4d9e984f91a62832
parent8d4f57dbd10846ffb4881b6509a511be0ab3b913
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)

This can happen when a file was edited after it was imported.
Lib/inspect.py
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2020-12-03-22-22-24.bpo-17735.Qsaaue.rst [new file with mode: 0644]