]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142349: Fix build errors from PEP 810 (#144726)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Thu, 12 Feb 2026 08:18:36 +0000 (08:18 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Feb 2026 08:18:36 +0000 (08:18 +0000)
Include/import.h
Lib/test/test_peg_generator/test_c_parser.py

index cc7ad71f2676a224def1216c4c659ec219a8c131..6f1c13787b8569a4c20b10adfdcf081838222d63 100644 (file)
@@ -91,7 +91,7 @@ PyAPI_FUNC(int) PyImport_AppendInittab(
 typedef enum {
     PyImport_LAZY_NORMAL,
     PyImport_LAZY_ALL,
-    PyImport_LAZY_NONE,
+    PyImport_LAZY_NONE
 } PyImport_LazyImportsMode;
 
 #ifndef Py_LIMITED_API
index 395f15b9a62cdfc1eb19710652fd33a424b44b76..3500f229b1b38634a05a4679d76919ea43e9b804 100644 (file)
@@ -356,9 +356,9 @@ class TestCParser(unittest.TestCase):
         grammar_source = """
         start[mod_ty]: a[asdl_stmt_seq*]=import_from+ NEWLINE ENDMARKER { _PyAST_Module(a, NULL, p->arena)}
         import_from[stmt_ty]: ( a='from' !'import' c=simple_name 'import' d=import_as_names_from {
-                                _PyAST_ImportFrom(c->v.Name.id, d, 0, EXTRA) }
+                                _PyAST_ImportFrom(c->v.Name.id, d, 0, 0, EXTRA) }
                             | a='from' '.' 'import' c=import_as_names_from {
-                                _PyAST_ImportFrom(NULL, c, 1, EXTRA) }
+                                _PyAST_ImportFrom(NULL, c, 1, 0, EXTRA) }
                             )
         simple_name[expr_ty]: NAME
         import_as_names_from[asdl_alias_seq*]: a[asdl_alias_seq*]=','.import_as_name_from+ { a }