mirror of
https://github.com/python/cpython.git
synced 2025-08-05 01:18:26 +00:00

(cherry picked from commit 48a62559df
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
3 lines
200 B
ReStructuredText
3 lines
200 B
ReStructuredText
Fixed wrong error being thrown by :func:`inspect.getsource` when examining a
|
|
class in the interactive session. Instead of :exc:`TypeError`, it should be
|
|
:exc:`OSError` with appropriate error message.
|