]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46306: simplify `CodeType` attribute access in `doctest.py` (GH-30481)
authorNikita Sobolev <mail@sobolevn.me>
Sat, 8 Jan 2022 20:13:42 +0000 (23:13 +0300)
committerGitHub <noreply@github.com>
Sat, 8 Jan 2022 20:13:42 +0000 (15:13 -0500)
commit0fc58c1e051026baff4919d8519ce2aabe3b2ba1
tree10d055c358b5d6d3dd2f6a4912020378b72658bf
parent8d59d2563b914b7208779834895c080c70cd94dd
bpo-46306: simplify `CodeType` attribute access in `doctest.py` (GH-30481)

Assume co_firstlineno always exists on types.CodeType objects.

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Lib/doctest.py
Misc/NEWS.d/next/Library/2022-01-08-13-53-25.bpo-46306.1_es8z.rst [new file with mode: 0644]