Commit 60dafbb
committed
gh-142349: Fix build errors from PEP 810
The PEP 810 commit added an is_lazy parameter to _PyAST_ImportFrom
but did not update the test_peg_generator test that calls this
function directly from a custom grammar. It also introduced a
trailing comma in the PyImport_LazyImportsMode enum which is
invalid under C++03 with -pedantic-errors, breaking test_cppext.
Pass 0 for the new is_lazy argument in the test grammar's
_PyAST_ImportFrom calls, and remove the trailing comma from the
enum definition to restore C++03 compatibility.1 parent 46d5106 commit 60dafbb
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
0 commit comments