mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#10019: Fix regression relative to 2.6: add newlines if indent=0
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
This commit is contained in:
parent
abdeeff3d1
commit
3dd02d62c9
4 changed files with 23 additions and 4 deletions
|
@ -135,9 +135,9 @@ Basic Usage
|
|||
using the JavaScript equivalents (``NaN``, ``Infinity``, ``-Infinity``).
|
||||
|
||||
If *indent* is a non-negative integer, then JSON array elements and object
|
||||
members will be pretty-printed with that indent level. An indent level of 0
|
||||
will only insert newlines. ``None`` (the default) selects the most compact
|
||||
representation.
|
||||
members will be pretty-printed with that indent level. An indent level of 0,
|
||||
or negative, will only insert newlines. ``None`` (the default) selects the
|
||||
most compact representation.
|
||||
|
||||
If *separators* is an ``(item_separator, dict_separator)`` tuple, then it
|
||||
will be used instead of the default ``(', ', ': ')`` separators. ``(',',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue