Skip to content

Commit 74ded68

Browse files
Make implicit curly braces explicit as per PEP 0007.
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
1 parent cd34712 commit 74ded68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/_json.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,8 +1524,9 @@ encoder_listencode_dict(PyEncoderObject *s, _PyUnicodeWriter *writer,
15241524
}
15251525
} else {
15261526
// Note that as noted in #55186, we can't use `PyDict_Size` here since we're dealing with a subclass.
1527-
if (PyMapping_Size(dct) == 0) /* Fast path for subclasses */
1527+
if (PyMapping_Size(dct) == 0) { /* Fast path for subclasses */
15281528
return _PyUnicodeWriter_WriteASCIIString(writer, "{}", 2);
1529+
}
15291530
}
15301531

15311532
if (s->markers != Py_None) {

0 commit comments

Comments
 (0)