mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Add spaces around the ":=" operator in ast_unparse.c (GH-19568)
This commit is contained in:
parent
2b5603140c
commit
ce578831a4
2 changed files with 3 additions and 3 deletions
|
@ -829,7 +829,7 @@ append_named_expr(_PyUnicodeWriter *writer, expr_ty e, int level)
|
|||
{
|
||||
APPEND_STR_IF(level > PR_TUPLE, "(");
|
||||
APPEND_EXPR(e->v.NamedExpr.target, PR_ATOM);
|
||||
APPEND_STR(":=");
|
||||
APPEND_STR(" := ");
|
||||
APPEND_EXPR(e->v.NamedExpr.value, PR_ATOM);
|
||||
APPEND_STR_IF(level > PR_TUPLE, ")");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue