Skip to content

Commit

Permalink
Remove separators argument (it is already set to this value if indent…
Browse files Browse the repository at this point in the history
… is not None)
  • Loading branch information
jpmckinney committed Oct 2, 2020
1 parent d954b0d commit 5f930e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/python/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Indent with 2 spaces, use UTF-8 characters, and preserve order of object pairs.
data = json.load(f)
with open(path, 'w') as f:
json.dump(data, f, ensure_ascii=False, indent=2, separators=(',', ': '))
json.dump(data, f, ensure_ascii=False, indent=2)
f.write('\n')
If (and only if) the code must support Python 3.5 or earlier, use:
Expand Down

0 comments on commit 5f930e7

Please sign in to comment.