diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2019-05-27 19:31:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 19:31:52 (GMT) |
commit | 6f6ff8a56518a80da406aad6ac8364c046cc7f18 (patch) | |
tree | 645d87649541f53b0ea4180a5f886c84320453fa /Parser | |
parent | 695b1dd8cbf3a48fdb30ab96918a49b20b7ec3e7 (diff) | |
download | cpython-6f6ff8a56518a80da406aad6ac8364c046cc7f18.zip cpython-6f6ff8a56518a80da406aad6ac8364c046cc7f18.tar.gz cpython-6f6ff8a56518a80da406aad6ac8364c046cc7f18.tar.bz2 |
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.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/Python.asdl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 882f5d1..0c00d39 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) |