@@ -118,9 +118,8 @@ Basic Usage
118118 file-like object).
119119
120120 If *skipkeys * is ``True `` (default: ``False ``), then dict keys that are not
121- of a basic type (:class: `bytes `, :class: `str `, :class: `int `,
122- :class: `float `, :class: `bool `, ``None ``) will be skipped instead of raising a
123- :exc: `TypeError `.
121+ of a basic type (:class: `str `, :class: `int `, :class: `float `, :class: `bool `,
122+ ``None ``) will be skipped instead of raising a :exc: `TypeError `.
124123
125124 The :mod: `json ` module always produces :class: `str ` objects, not
126125 :class: `bytes ` objects. Therefore, ``fp.write() `` must support :class: `str `
@@ -201,15 +200,11 @@ Basic Usage
201200
202201.. function :: loads(s, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
203202
204- Deserialize *s * (a :class: `bytes ` or :class: `str ` instance containing a JSON
205- document) to a Python object.
206-
207- If *s * is a :class: `bytes ` instance and is encoded with an ASCII based encoding
208- other than UTF-8 (e.g. latin-1), then an appropriate *encoding * name must be
209- specified. Encodings that are not ASCII based (such as UCS-2) are not
210- allowed and should be decoded to :class: `str ` first.
203+ Deserialize *s * (a :class: `str ` instance containing a JSON document) to a
204+ Python object.
211205
212- The other arguments have the same meaning as in :func: `load `.
206+ The other arguments have the same meaning as in :func: `load `, except
207+ *encoding * which is ignored and deprecated.
213208
214209
215210Encoders and decoders
0 commit comments