Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comments to #endif
  • Loading branch information
vstinner committed Oct 29, 2020
commit b513e348c351b6d5b7f0fee64ca9d52626158794
4 changes: 2 additions & 2 deletions Parser/asdl_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ def generate_module_def(mod, f, internal_h):
generate_ast_state(module_state, f)

print(textwrap.dedent(f"""
#endif
#endif // Py_BUILD_CORE
""").rstrip(), file=f)

f.write("""
Expand Down Expand Up @@ -1443,7 +1443,7 @@ def generate_module_def(mod, f, internal_h):
}
return state;
}
#endif
#endif // Py_BUILD_CORE
""")

# f-string for {mod.name}
Expand Down
4 changes: 2 additions & 2 deletions Python/Python-ast.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.