summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-12 14:20:41 (GMT)
committerGitHub <noreply@github.com>2023-09-12 14:20:41 (GMT)
commit2004e12d8d6268795425a57b4f5b4fb7e895d1ea (patch)
treecb497dd87e9ab3a63e6355dd8417d1f7bcaf7e03 /Python
parent8e96b98282d8da7702a963aa751d9ecc29826dda (diff)
downloadcpython-2004e12d8d6268795425a57b4f5b4fb7e895d1ea.zip
cpython-2004e12d8d6268795425a57b4f5b4fb7e895d1ea.tar.gz
cpython-2004e12d8d6268795425a57b4f5b4fb7e895d1ea.tar.bz2
[3.12] gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (#109291)
gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (cherry picked from commit ceeb4173aee7b835f553a8286feaa48b98c16124) Co-authored-by: Carl Meyer <carl@oddbird.net>
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 9395f52..b6e5adf 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -4776,7 +4776,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));