From ce578831a4e573eac422a488930100bc5380f227 Mon Sep 17 00:00:00 2001 From: Hakan Çelik Date: Sat, 18 Apr 2020 19:17:19 +0300 Subject: Add spaces around the ":=" operator in ast_unparse.c (GH-19568) --- Python/ast_unparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast_unparse.c') diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c index 443e7125d77..d1e9d42d33b 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; -- cgit v1.2.3