summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-07-14 23:32:18 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-14 23:32:18 (GMT)
commitcd6e83b4810549c308ab2d7315dbab526e35ccf6 (patch)
tree978814533cacd17ee669ef32504e502acd4f7a20 /Python/ast.c
parent8b7db5a1114e2113a756bdf8877fbe366055c69a (diff)
downloadcpython-cd6e83b4810549c308ab2d7315dbab526e35ccf6.zip
cpython-cd6e83b4810549c308ab2d7315dbab526e35ccf6.tar.gz
cpython-cd6e83b4810549c308ab2d7315dbab526e35ccf6.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
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 8dc86c2..ce3b492 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