mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Indentation normalization.
This commit is contained in:
parent
a74d675fac
commit
1379ae02e3
1 changed files with 2 additions and 2 deletions
|
|
@ -371,9 +371,9 @@ Encoders and decoders
|
|||
|
||||
def default(self, o):
|
||||
try:
|
||||
iterable = iter(o)
|
||||
iterable = iter(o)
|
||||
except TypeError:
|
||||
pass
|
||||
pass
|
||||
else:
|
||||
return list(iterable)
|
||||
return JSONEncoder.default(self, o)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue