Skip to content

Commit 28ca43b

Browse files
authored
closes bpo-39898: Remove unused arg from append_formattedvalue. (pythonGH-18840)
1 parent db283b3 commit 28ca43b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/ast_unparse.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level);
1515
static int
1616
append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec);
1717
static int
18-
append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec);
18+
append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e);
1919
static int
2020
append_ast_slice(_PyUnicodeWriter *writer, slice_ty slice);
2121

@@ -583,7 +583,7 @@ append_fstring_element(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec)
583583
case JoinedStr_kind:
584584
return append_joinedstr(writer, e, is_format_spec);
585585
case FormattedValue_kind:
586-
return append_formattedvalue(writer, e, is_format_spec);
586+
return append_formattedvalue(writer, e);
587587
default:
588588
PyErr_SetString(PyExc_SystemError,
589589
"unknown expression kind inside f-string");
@@ -640,7 +640,7 @@ append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec)
640640
}
641641

642642
static int
643-
append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec)
643+
append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e)
644644
{
645645
const char *conversion;
646646
const char *outer_brace = "{";
@@ -870,7 +870,7 @@ append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level)
870870
case JoinedStr_kind:
871871
return append_joinedstr(writer, e, false);
872872
case FormattedValue_kind:
873-
return append_formattedvalue(writer, e, false);
873+
return append_formattedvalue(writer, e);
874874
/* The following exprs can be assignment targets. */
875875
case Attribute_kind:
876876
return append_ast_attribute(writer, e);

0 commit comments

Comments
 (0)