]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-139640: Fix swallowing syntax warnings in different modules (GH-139755...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 14 Oct 2025 15:46:11 +0000 (18:46 +0300)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 15:46:11 +0000 (15:46 +0000)
commit92f7965cf6f36dd9218512172f8d48cccd71ccfa
treef4a13210d924eb8d089c80f384d4a1e5885241df
parentc5ec267311f9312c75ebef330dd210cc64ec0c24
[3.13] gh-139640: Fix swallowing syntax warnings in different modules (GH-139755) (GH-140119)

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)
Include/cpython/warnings.h
Lib/test/test_compile.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