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
commit09199610864aaaea6bdc86ed13106111b48b27f4 (patch)
tree221513b947441bfdecfd1038e45ceae1df40ac40 /Lib/json/encoder.py
parentfbc8ae9efdde0df34e4a4670230b1a38621188d1 (diff)
downloadcpython-09199610864aaaea6bdc86ed13106111b48b27f4.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.