Skip to content

Commit 81332c7

Browse files
committed
Fix blank lines
1 parent 6b69fea commit 81332c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/test_json/test_recursion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
class JSONTestObject:
88
pass
9+
910
class TestRecursion:
1011
def test_listrecursion(self):
1112
x = []
@@ -145,5 +146,6 @@ def default(obj):
145146
for i, ref in enumerate(weak_refs):
146147
self.assertIsNone(ref(), f"object {i} still alive")
147148

149+
148150
class TestPyRecursion(TestRecursion, PyTest): pass
149151
class TestCRecursion(TestRecursion, CTest): pass

Modules/_json.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,14 +1639,18 @@ encoder_listencode_obj(PyEncoderObject *s, PyUnicodeWriter *writer,
16391639
Py_DECREF(newobj);
16401640
return -1;
16411641
}
1642+
16421643
}
1644+
16431645
Py_DECREF(newobj);
16441646
return -1;
16451647
}
16461648
rv = encoder_listencode_obj(s, writer, newobj, indent_level, indent_cache);
16471649
_Py_LeaveRecursiveCall();
1650+
16481651
Py_DECREF(newobj);
16491652
if (rv) {
1653+
_PyErr_FormatNote("when serializing %T object", obj);
16501654
if (ident != NULL) {
16511655
int del_rv = PyDict_DelItem(s->markers, ident);
16521656
Py_DECREF(ident);

0 commit comments

Comments
 (0)