diff options
author | Batuhan Taskaya <batuhanosmantaskaya@gmail.com> | 2020-10-10 17:14:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 17:14:59 (GMT) |
commit | 02a1603f918b9862e164e4fd050c505b16bc9f57 (patch) | |
tree | 89edf08ba59a6f30fd436375b7c24ce5402b71d0 /Parser/pegen.c | |
parent | 637a09b0d6e3ad4e34e0b5e0fc82f5afeae6f74b (diff) | |
download | cpython-02a1603f918b9862e164e4fd050c505b16bc9f57.zip cpython-02a1603f918b9862e164e4fd050c505b16bc9f57.tar.gz cpython-02a1603f918b9862e164e4fd050c505b16bc9f57.tar.bz2 |
bpo-42000: Cleanup the AST related C-code (GH-22641)
- Use the proper asdl sequence when creating empty arguments
- Remove reduntant casts (thanks to new typed asdl_sequences)
- Remove MarshalPrototypeVisitor and some utilities from asdl generator
- Fix the header of `Python/ast.c` (kept from pgen times)
Automerge-Triggered-By: @pablogsal
Diffstat (limited to 'Parser/pegen.c')
-rw-r--r-- | Parser/pegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c index 1de495e..efa5ed9 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c @@ -1897,7 +1897,7 @@ _PyPegen_empty_arguments(Parser *p) return NULL; } - return _Py_arguments(posonlyargs, posargs, NULL, kwonlyargs, kwdefaults, NULL, kwdefaults, + return _Py_arguments(posonlyargs, posargs, NULL, kwonlyargs, kwdefaults, NULL, posdefaults, p->arena); } |