summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-11 14:44:21 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-11 14:44:21 +0200
commite52270f1ca24922a060a14d59b9cea7f98bb44a6 (patch)
tree47737bd981d35c18528f24d3ad9a9e07a49d6488 /Python/ast.c
parent5cc7aee764173c00a75ce15fc831cf35ea4b24f4 (diff)
parent6e66f196b796eeb405cb7c5ae572c6f9a24f3990 (diff)
downloadcpython-e52270f1ca24922a060a14d59b9cea7f98bb44a6.tar.gz
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 82f4529bf9..e6786d47f9 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -2738,11 +2738,6 @@ ast_for_call(struct compiling *c, const node *n, expr_ty func)
return NULL;
}
- if (nargs + nkeywords + ngens > 255) {
- ast_error(c, n, "more than 255 arguments");
- return NULL;
- }
-
args = _Py_asdl_seq_new(nargs + ngens, c->c_arena);
if (!args)
return NULL;