aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/symtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 2f13f35072a..f633e281019 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -2510,9 +2510,17 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
if (e->v.FormattedValue.format_spec)
VISIT(st, expr, e->v.FormattedValue.format_spec);
break;
+ case Interpolation_kind:
+ VISIT(st, expr, e->v.Interpolation.value);
+ if (e->v.Interpolation.format_spec)
+ VISIT(st, expr, e->v.Interpolation.format_spec);
+ break;
case JoinedStr_kind:
VISIT_SEQ(st, expr, e->v.JoinedStr.values);
break;
+ case TemplateStr_kind:
+ VISIT_SEQ(st, expr, e->v.TemplateStr.values);
+ break;
case Constant_kind:
/* Nothing to do here. */
break;