Skip to content

Commit 223a0db

Browse files
Update _json.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent e62a2b3 commit 223a0db

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Modules/_json.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ escape_size(const void *input, int kind, Py_ssize_t input_chars)
321321
if (!needs_escape) {
322322
for (; j < input_chars; j++) {
323323
Py_UCS1 c = p[j];
324-
if (c == '"' || c == '\\' || c < 0x20) { needs_escape = 1; break; }
324+
if (c == '"' || c == '\\' || c < 0x20) {
325+
needs_escape = 1;
326+
break;
327+
}
325328
}
326329
}
327330
if (!needs_escape) {

0 commit comments

Comments
 (0)