From: Serhiy Storchaka Date: Wed, 27 Apr 2016 20:06:15 +0000 (+0300) Subject: fileinput.hook_encoded() uses builtin open(), not codecs.open(). X-Git-Tag: v3.6.0a1~106^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a87e6ba0ac54113c1617900d18ae05d3c0c2d366;p=python fileinput.hook_encoded() uses builtin open(), not codecs.open(). --- diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index 9510f76332..a55bbe324f 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -196,7 +196,7 @@ The two following opening hooks are provided by this module: .. function:: hook_encoded(encoding) - Returns a hook which opens each file with :func:`codecs.open`, using the given + Returns a hook which opens each file with :func:`open`, using the given *encoding* to read the file. Usage example: ``fi =