Skip to content

Commit 9405767

Browse files
committed
Remove OrderedDict from json.decoder's comment
1 parent 93d64fc commit 9405767

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/json/decoder.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,8 @@ def __init__(self, *, object_hook=None, parse_float=None,
293293
every JSON object decoded with an ordered list of pairs. The return
294294
value of ``object_pairs_hook`` will be used instead of the ``dict``.
295295
This feature can be used to implement custom decoders that rely on the
296-
order that the key and value pairs are decoded (for example,
297-
collections.OrderedDict will remember the order of insertion). If
298-
``object_hook`` is also defined, the ``object_pairs_hook`` takes
299-
priority.
296+
order that the key and value pairs are decoded. If ``object_hook``
297+
is also defined, the ``object_pairs_hook`` takes priority.
300298
301299
``parse_float``, if specified, will be called with the string
302300
of every JSON float to be decoded. By default this is equivalent to

0 commit comments

Comments
 (0)