summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-22 14:48:57 +0300
committerYury Selivanov <yselivanov@sprymix.com>2015-07-22 14:48:57 +0300
commit0d0c1f7adb3accb5352012a42ecc68587a10e683 (patch)
tree290fdc8e22a294dd6329d9a7d7a8b0c677f0152f /Python/symtable.c
parent35c1e53a87bc711efc72fcdd5ce25b9f124ab563 (diff)
downloadcpython-0d0c1f7adb3accb5352012a42ecc68587a10e683.tar.gz
Issue #24619: More tests; fix nits in compiler.c
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 354b799678..64910d8a55 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -1542,7 +1542,7 @@ symtable_visit_annotations(struct symtable *st, stmt_ty s,
if (a->kwonlyargs && !symtable_visit_argannotations(st, a->kwonlyargs))
return 0;
if (returns)
- VISIT(st, expr, s->v.FunctionDef.returns);
+ VISIT(st, expr, returns);
return 1;
}