summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.c
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>2020-10-10 17:14:59 (GMT)
committerGitHub <noreply@github.com>2020-10-10 17:14:59 (GMT)
commit02a1603f918b9862e164e4fd050c505b16bc9f57 (patch)
tree89edf08ba59a6f30fd436375b7c24ce5402b71d0 /Parser/pegen.c
parent637a09b0d6e3ad4e34e0b5e0fc82f5afeae6f74b (diff)
downloadcpython-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.c2
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);
}