Skip to content

Commit 4b92eb0

Browse files
committed
Add {}
1 parent 9bfa132 commit 4b92eb0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Modules/_json.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,8 +1730,9 @@ encoder_listencode_dict(PyEncoderObject *s, PyUnicodeWriter *writer,
17301730
}
17311731

17321732
if (ident != NULL) {
1733-
if (_PyDict_DelItem_KnownHash(s->markers, ident, ident_hash))
1733+
if (_PyDict_DelItem_KnownHash(s->markers, ident, ident_hash)) {
17341734
goto bail;
1735+
}
17351736
Py_CLEAR(ident);
17361737
}
17371738
if (s->indent != Py_None && !first) {
@@ -1816,8 +1817,9 @@ encoder_listencode_list(PyEncoderObject *s, PyUnicodeWriter *writer,
18161817
}
18171818
}
18181819
if (ident != NULL) {
1819-
if (_PyDict_DelItem_KnownHash(s->markers, ident, ident_hash))
1820+
if (_PyDict_DelItem_KnownHash(s->markers, ident, ident_hash)) {
18201821
goto bail;
1822+
}
18211823
Py_CLEAR(ident);
18221824
}
18231825

0 commit comments

Comments
 (0)