Skip to content

Commit a595ccc

Browse files
committed
Nit: return result instead of -1
1 parent 173e456 commit a595ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ast_unparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ append_templatestr(PyUnicodeWriter *writer, expr_ty e)
668668
int result = -1;
669669
PyObject *body = build_ftstring_body(e->v.TemplateStr.values, 0);
670670
if (!body) {
671-
return -1;
671+
return result;
672672
}
673673

674674
if (-1 != append_charp(writer, "t") &&

0 commit comments

Comments
 (0)