From: Georg Brandl Date: Thu, 23 Apr 2009 08:44:57 +0000 (+0000) Subject: #5820: fix bug in usage of getreader(). X-Git-Tag: v2.7a1~1431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49cc4eafcbec13643784ce0bfcdcd6b5b939ca10;p=python #5820: fix bug in usage of getreader(). --- diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 950e4336fd..39ca233353 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