[Python-checkins] r71814 - python/trunk/Doc/library/json.rst
georg.brandl
python-checkins at python.org
Thu Apr 23 10:44:57 CEST 2009
Author: georg.brandl
Date: Thu Apr 23 10:44:57 2009
New Revision: 71814
Log:
#5820: fix bug in usage of getreader().
Modified:
python/trunk/Doc/library/json.rst
Modified: python/trunk/Doc/library/json.rst
==============================================================================
--- python/trunk/Doc/library/json.rst (original)
+++ python/trunk/Doc/library/json.rst Thu Apr 23 10:44:57 2009
@@ -174,7 +174,7 @@
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
More information about the Python-checkins
mailing list