mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642)
ast.parse() no longer emits syntax warnings for return/break/continue in finally (see PEP-765) -- they are only emitted during compilation.
This commit is contained in:
parent
2a904263aa
commit
ad0a3f733b
7 changed files with 98 additions and 61 deletions
|
|
@ -49,7 +49,8 @@ extern int _PyAST_Preprocess(
|
|||
PyObject *filename,
|
||||
int optimize,
|
||||
int ff_features,
|
||||
int syntax_check_only);
|
||||
int syntax_check_only,
|
||||
int enable_warnings);
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue