summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-14 23:49:52 (GMT)
committerGitHub <noreply@github.com>2019-07-14 23:49:52 (GMT)
commitcf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1 (patch)
tree087fb25d3e2aea6ef3bdcc9a8b4eda8637a1b83f /Python/ast.c
parent3958b7aae8cc7c571a842ff43c1dea1da9abdd9d (diff)
downloadcpython-cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1.zip
cpython-cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1.tar.gz
cpython-cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1.tar.bz2
bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778)
https://bugs.python.org/issue37593 (cherry picked from commit cd6e83b4810549c308ab2d7315dbab526e35ccf6) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 317a42b..f6c2049 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1688,7 +1688,7 @@ ast_for_arguments(struct compiling *c, const node *n)
return NULL;
}
}
- return arguments(posargs, posonlyargs, vararg, kwonlyargs, kwdefaults, kwarg, posdefaults, c->c_arena);
+ return arguments(posonlyargs, posargs, vararg, kwonlyargs, kwdefaults, kwarg, posdefaults, c->c_arena);
}
static expr_ty