summaryrefslogtreecommitdiff
path: root/Lib/json/encoder.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-22 00:03:20 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-22 00:03:20 +0300
commitaacd53f6cb96fe8c4fe9ce894f22e25f356a97c3 (patch)
tree4ba936a620bf3170ae9c7f74c35bf52142e40288 /Lib/json/encoder.py
parent43354375063662deda272b9a2d64cf53d6b748f3 (diff)
downloadcpython-git-aacd53f6cb96fe8c4fe9ce894f22e25f356a97c3.tar.gz
Issue #18726: All optional parameters of the dump(), dumps(),
load() and loads() functions and JSONEncoder and JSONDecoder class constructors in the json module are now keyword-only.
Diffstat (limited to 'Lib/json/encoder.py')
-rw-r--r--Lib/json/encoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py
index 0772bbc06b..41a497c5da 100644
--- a/Lib/json/encoder.py
+++ b/Lib/json/encoder.py
@@ -101,7 +101,7 @@ class JSONEncoder(object):
"""
item_separator = ', '
key_separator = ': '
- def __init__(self, skipkeys=False, ensure_ascii=True,
+ def __init__(self, *, skipkeys=False, ensure_ascii=True,
check_circular=True, allow_nan=True, sort_keys=False,
indent=None, separators=None, default=None):
"""Constructor for JSONEncoder, with sensible defaults.