summaryrefslogtreecommitdiff
path: root/Python/ast_unparse.c
diff options
context:
space:
mode:
authorHakan Çelik <hakancelik96@outlook.com>2020-04-18 19:17:19 +0300
committerGitHub <noreply@github.com>2020-04-18 17:17:19 +0100
commitce578831a4e573eac422a488930100bc5380f227 (patch)
tree36941dee90039657430686babe68c52e4b46e672 /Python/ast_unparse.c
parent2b5603140c09766a7d4e8243a70d7144f684f6f9 (diff)
downloadcpython-git-ce578831a4e573eac422a488930100bc5380f227.tar.gz
Add spaces around the ":=" operator in ast_unparse.c (GH-19568)
Diffstat (limited to 'Python/ast_unparse.c')
-rw-r--r--Python/ast_unparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c
index 443e7125d7..d1e9d42d33 100644
--- a/Python/ast_unparse.c
+++ b/Python/ast_unparse.c
@@ -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;