diff options
author | Andy Lester <andy@petdance.com> | 2020-03-08 16:53:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 16:53:59 (GMT) |
commit | 28ca43b7e30e2eaa2997c3becd8b1a837484ae5c (patch) | |
tree | 6bd4821465927c303e06dfd26f9efece034e86ee | |
parent | db283b32e7580741a8b6b7f27f616cc656634750 (diff) | |
download | cpython-28ca43b7e30e2eaa2997c3becd8b1a837484ae5c.zip cpython-28ca43b7e30e2eaa2997c3becd8b1a837484ae5c.tar.gz cpython-28ca43b7e30e2eaa2997c3becd8b1a837484ae5c.tar.bz2 |
closes bpo-39898: Remove unused arg from append_formattedvalue. (GH-18840)
-rw-r--r-- | Python/ast_unparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c index 1a7cd23..bd9c139 100644 --- a/Python/ast_unparse.c +++ b/Python/ast_unparse.c @@ -15,7 +15,7 @@ append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level); static int append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec); static int -append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec); +append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e); static int append_ast_slice(_PyUnicodeWriter *writer, slice_ty slice); @@ -583,7 +583,7 @@ append_fstring_element(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec) case JoinedStr_kind: return append_joinedstr(writer, e, is_format_spec); case FormattedValue_kind: - return append_formattedvalue(writer, e, is_format_spec); + return append_formattedvalue(writer, e); default: PyErr_SetString(PyExc_SystemError, "unknown expression kind inside f-string"); @@ -640,7 +640,7 @@ append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec) } static int -append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec) +append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e) { const char *conversion; const char *outer_brace = "{"; @@ -870,7 +870,7 @@ append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level) case JoinedStr_kind: return append_joinedstr(writer, e, false); case FormattedValue_kind: - return append_formattedvalue(writer, e, false); + return append_formattedvalue(writer, e); /* The following exprs can be assignment targets. */ case Attribute_kind: return append_ast_attribute(writer, e); |