diff options
author | Georg Brandl <georg@python.org> | 2009-04-23 08:44:57 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-23 08:44:57 (GMT) |
commit | 49cc4eafcbec13643784ce0bfcdcd6b5b939ca10 (patch) | |
tree | 158ad6f624957b30ea84ed2abda3f3ce7487905f /Doc | |
parent | f13447f3f75c7b56eec6a602b0b72a48fbbc5486 (diff) | |
download | cpython-49cc4eafcbec13643784ce0bfcdcd6b5b939ca10.zip cpython-49cc4eafcbec13643784ce0bfcdcd6b5b939ca10.tar.gz cpython-49cc4eafcbec13643784ce0bfcdcd6b5b939ca10.tar.bz2 |
#5820: fix bug in usage of getreader().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/json.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 950e433..39ca233 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -174,7 +174,7 @@ Basic Usage If the contents of *fp* are encoded with an ASCII based encoding other than UTF-8 (e.g. latin-1), then an appropriate *encoding* name must be specified. Encodings that are not ASCII based (such as UCS-2) are not allowed, and - should be wrapped with ``codecs.getreader(fp)(encoding)``, or simply decoded + should be wrapped with ``codecs.getreader(encoding)(fp)``, or simply decoded to a :class:`unicode` object and passed to :func:`loads`. *object_hook* is an optional function that will be called with the result of |