summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/next/Library/2020-12-03-22-22-24.bpo-17735.Qsaaue.rst
blob: 655781e3d2eddb6a59e525be6cb810543f53627e (plain)
1
2
3
4
:func:`inspect.findsource` now raises :exc:`OSError` instead of
:exc:`IndexError` when :attr:`co_lineno` of a code object is greater than the
file length. This can happen, for example, when a file is edited after it was
imported.  PR by Irit Katriel.