]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-139640: Fix swallowing syntax warnings in different modules (GH-139755...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Oct 2025 15:56:01 +0000 (17:56 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 15:56:01 +0000 (15:56 +0000)
commitaf28efd8b4a17b3c2fe63fc62bdade0bcb9146cd
treedc3e0e61387804a6953b5343927b71b9abba1d8d
parent99e42ab49cb38f792f9ddca960fdb361c3522a3f
[3.14] gh-139640: Fix swallowing syntax warnings in different modules (GH-139755) (GH-140117)

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.

Fix duplicated warnings in the "finally" block.

(cherry picked from commit 279db6bede30be3a1b86803585eb4404d27800da)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Update 2025-10-06-10-03-37.gh-issue-139640.gY5oTb.rst

---------

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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