]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129843: fix pure Python implementation of `warnings.warn_explicit` (#129848)
authorSrinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Mon, 17 Mar 2025 10:49:53 +0000 (16:19 +0530)
committerGitHub <noreply@github.com>
Mon, 17 Mar 2025 10:49:53 +0000 (10:49 +0000)
commit80e00ecc399db8aeaa9f3a1c87a2cfb34517d7be
tree899fbb137ea9aa22162ad28ffb73c549d99629dc
parentac50ece6cea8745834e4ec0a9617809a51245bfc
gh-129843: fix pure Python implementation of `warnings.warn_explicit` (#129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
Lib/warnings.py
Misc/NEWS.d/next/Library/2025-03-17-15-45-36.gh-issue-129843.NPdpXL.rst [new file with mode: 0644]