mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
Fix JSON docs about loads() accepting only str objects, not bytes.
This commit is contained in:
parent
2e042d3dc2
commit
00d650baaa
2 changed files with 8 additions and 11 deletions
|
@ -298,6 +298,8 @@ def loads(s, encoding=None, cls=None, object_hook=None, parse_float=None,
|
|||
To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
|
||||
kwarg; otherwise ``JSONDecoder`` is used.
|
||||
|
||||
The ``encoding`` argument is ignored and deprecated.
|
||||
|
||||
"""
|
||||
if (cls is None and object_hook is None and
|
||||
parse_int is None and parse_float is None and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue