summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2023-09-11 23:35:49 (GMT)
committerGitHub <noreply@github.com>2023-09-11 23:35:49 (GMT)
commitceeb4173aee7b835f553a8286feaa48b98c16124 (patch)
treed1f236174708b0d6c45ba7c79ea5986494cf6465 /Python/compile.c
parentfbaf77eb9bd1e6812ebf984d32b29b025cc037d6 (diff)
downloadcpython-ceeb4173aee7b835f553a8286feaa48b98c16124.zip
cpython-ceeb4173aee7b835f553a8286feaa48b98c16124.tar.gz
cpython-ceeb4173aee7b835f553a8286feaa48b98c16124.tar.bz2
gh-109195: fix source location for super load before LOAD_SUPER_ATTR (#109289)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index ae9edc9..1f08e46 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -4868,7 +4868,7 @@ load_args_for_super(struct compiler *c, expr_ty e) {
// load super() global
PyObject *super_name = e->v.Call.func->v.Name.id;
- RETURN_IF_ERROR(compiler_nameop(c, loc, super_name, Load));
+ RETURN_IF_ERROR(compiler_nameop(c, LOC(e->v.Call.func), super_name, Load));
if (asdl_seq_LEN(e->v.Call.args) == 2) {
VISIT(c, expr, asdl_seq_GET(e->v.Call.args, 0));