Skip to content

Commit

Permalink
Fix: in 3.12, use extended ASTs also when importing
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Oct 22, 2023
1 parent aceb4c0 commit c6cf4e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notebooks/PythonFuzzer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,7 @@
"metadata": {},
"outputs": [],
"source": [
"# do import this unconditionally\n",
"if sys.version_info >= (3, 12):\n",
" PYTHON_AST_DEFS_GRAMMAR: Grammar = extend_grammar(PYTHON_AST_DEFS_GRAMMAR, {\n",
" '<FunctionDef>': [\n",
Expand Down

0 comments on commit c6cf4e6

Please sign in to comment.