mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
PEP 8 nits in json package
This commit is contained in:
parent
24237ea8a1
commit
0b7f77847a
3 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ import json
|
|||
class JSONTestObject:
|
||||
pass
|
||||
|
||||
|
||||
class RecursiveJSONEncoder(json.JSONEncoder):
|
||||
recurse = False
|
||||
def default(self, o):
|
||||
|
@ -15,6 +16,7 @@ class RecursiveJSONEncoder(json.JSONEncoder):
|
|||
return 'JSONTestObject'
|
||||
return json.JSONEncoder.default(o)
|
||||
|
||||
|
||||
class TestRecursion(TestCase):
|
||||
def test_listrecursion(self):
|
||||
x = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue