diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-11 14:44:21 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-11 14:44:21 +0200 |
commit | e52270f1ca24922a060a14d59b9cea7f98bb44a6 (patch) | |
tree | 47737bd981d35c18528f24d3ad9a9e07a49d6488 /Python/ast.c | |
parent | 5cc7aee764173c00a75ce15fc831cf35ea4b24f4 (diff) | |
parent | 6e66f196b796eeb405cb7c5ae572c6f9a24f3990 (diff) | |
download | cpython-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.c | 5 |
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; |