Issue #24619: More tests; fix nits in compiler.c

This commit is contained in:
Yury Selivanov 2015-07-22 14:48:57 +03:00
parent 8fb307cd65
commit b7666a3093
4 changed files with 9 additions and 9 deletions

View file

@ -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;
}