Skip to content

Commit 96cd25e

Browse files
authored
Merge pull request #315 from python/master
Sync Fork from Upstream Repo
2 parents cb85d5c + c580981 commit 96cd25e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/using/cmdline.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ source.
109109
Many standard library modules contain code that is invoked on their execution
110110
as a script. An example is the :mod:`timeit` module::
111111

112-
python -mtimeit -s 'setup here' 'benchmarked code here'
113-
python -mtimeit -h # for details
112+
python -m timeit -s 'setup here' 'benchmarked code here'
113+
python -m timeit -h # for details
114114

115115
.. audit-event:: cpython.run_module module-name cmdoption-m
116116

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)