mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-40750: Support -d flag in the new parser (GH-20340)
This commit is contained in:
parent
7d847e29d7
commit
800a35c623
6 changed files with 4440 additions and 48 deletions
|
@ -96,7 +96,7 @@ def generate_parser_c_extension(
|
|||
# context.
|
||||
assert not os.listdir(path)
|
||||
source = path / "parse.c"
|
||||
with open(source, "w") as file:
|
||||
with open(source, "w", encoding="utf-8") as file:
|
||||
genr = CParserGenerator(
|
||||
grammar, ALL_TOKENS, EXACT_TOKENS, NON_EXACT_TOKENS, file, debug=debug
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue