File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -283,19 +283,18 @@ Basic Usage
283
283
instance containing a JSON document) to a Python object using this
284
284
:ref: `conversion table <json-to-py-table >`.
285
285
286
- The other arguments have the same meaning as in :func: `load `, except
287
- *encoding * which is ignored and deprecated since Python 3.1.
286
+ The other arguments have the same meaning as in :func: `load `.
288
287
289
288
If the data being deserialized is not a valid JSON document, a
290
289
:exc: `JSONDecodeError ` will be raised.
291
290
292
- .. deprecated-removed :: 3.1 3.9
293
- *encoding * keyword argument.
294
-
295
291
.. versionchanged :: 3.6
296
292
*s * can now be of type :class: `bytes ` or :class: `bytearray `. The
297
293
input encoding should be UTF-8, UTF-16 or UTF-32.
298
294
295
+ .. versionchanged :: 3.9
296
+ The keyword argument *encoding * has been removed.
297
+
299
298
300
299
Encoders and Decoders
301
300
---------------------
Original file line number Diff line number Diff line change @@ -424,11 +424,15 @@ Removed
424
424
(Contributed by Victor Stinner in :issue: `39350 `.)
425
425
426
426
* The *buffering * parameter of :class: `bz2.BZ2File ` has been removed. Since
427
- Python 3.0, it was ignored and using it was emitting
428
- :exc: `DeprecationWarning `. Pass an open file object to control how the file
429
- is opened.
427
+ Python 3.0, it was ignored and using it emitted a :exc: `DeprecationWarning `.
428
+ Pass an open file object to control how the file is opened.
430
429
(Contributed by Victor Stinner in :issue: `39357 `.)
431
430
431
+ * The *encoding * parameter of :func: `json.loads ` has been removed.
432
+ As of Python 3.1, it was deprecated and ignored; using it has emitted a
433
+ :exc: `DeprecationWarning ` since Python 3.8.
434
+ (Contributed by Inada Naoki in :issue: `39377 `)
435
+
432
436
433
437
Porting to Python 3.9
434
438
=====================
You can’t perform that action at this time.
0 commit comments