Skip to content

Commit 450d771

Browse files
committed
First fixes; conv and format_spec still not working
1 parent 9248287 commit 450d771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parser/action_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ expr_ty _PyPegen_interpolation(Parser *p, expr_ty expression, Token *debug, Resu
14911491
int conversion_val = _get_interpolation_conversion(p, debug, conversion, format);
14921492
if (conversion_val >= 0) {
14931493
expr_ty conv = (expr_ty) conversion->result;
1494-
constant convstr = PyUnicode_FromObject(conv->v.Name.id);
1494+
convstr = PyUnicode_FromObject(conv->v.Name.id);
14951495
if (convstr == NULL) {
14961496
return NULL;
14971497
}

Python/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ validate_expr(struct validator *state, expr_ty exp, expr_context_ty ctx)
371371
case Interpolation_kind:
372372
if (validate_expr(state, exp->v.Interpolation.value, Load) == 0)
373373
return 0;
374-
if (exp->v.FormattedValue.format_spec) {
374+
if (exp->v.Interpolation.format_spec) {
375375
ret = validate_expr(state, exp->v.Interpolation.format_spec, Load);
376376
break;
377377
}

0 commit comments

Comments
 (0)