From 6f6ff8a56518a80da406aad6ac8364c046cc7f18 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Mon, 27 May 2019 15:31:52 -0400 Subject: bpo-37050: Remove expr_text from FormattedValue ast node, use Constant node instead (GH-13597) When using the "=" debug functionality of f-strings, use another Constant node (or a merged constant node) instead of adding expr_text to the FormattedValue node. --- Parser/Python.asdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Parser') diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 882f5d1eba..0c00d398b4 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -76,7 +76,7 @@ module Python -- x < 4 < 3 and (x < 4) < 3 | Compare(expr left, cmpop* ops, expr* comparators) | Call(expr func, expr* args, keyword* keywords) - | FormattedValue(expr value, int? conversion, expr? format_spec, string? expr_text) + | FormattedValue(expr value, int? conversion, expr? format_spec) | JoinedStr(expr* values) | Constant(constant value, string? kind) -- cgit v1.2.1