]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139640: Fix swallowing syntax warnings in different modules (GH-139755)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 14 Oct 2025 14:48:09 +0000 (17:48 +0300)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 14:48:09 +0000 (17:48 +0300)
commit279db6bede30be3a1b86803585eb4404d27800da
tree09deeb659b0afe211e13ca13fcdd23067ce48e41
parent1ff6d69fbe08f408be3a064c63e16deaad568b3f
gh-139640: Fix swallowing syntax warnings in different modules (GH-139755)

Revert GH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.
Include/cpython/warnings.h
Lib/test/test_compile.py
Lib/test/test_pyrepl/test_interact.py
Misc/NEWS.d/next/Core_and_Builtins/2025-10-06-10-03-37.gh-issue-139640.gY5oTb.rst [new file with mode: 0644]
Python/_warnings.c
Python/compile.c
Python/errors.c