From aacd53f6cb96fe8c4fe9ce894f22e25f356a97c3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 22 Jun 2016 00:03:20 +0300 Subject: 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. --- Lib/json/decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/json/decoder.py') diff --git a/Lib/json/decoder.py b/Lib/json/decoder.py index 0f03f20042..2422c6ac10 100644 --- a/Lib/json/decoder.py +++ b/Lib/json/decoder.py @@ -280,7 +280,7 @@ class JSONDecoder(object): """ - def __init__(self, object_hook=None, parse_float=None, + def __init__(self, *, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None): """``object_hook``, if specified, will be called with the result -- cgit v1.2.1