Fix JSON docs about loads() accepting only str objects, not bytes.

This commit is contained in:
Antoine Pitrou 2011-01-21 21:37:32 +00:00
parent 2e042d3dc2
commit 00d650baaa
2 changed files with 8 additions and 11 deletions

View file

@ -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