diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-27 20:06:15 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-27 20:06:15 (GMT) |
commit | a87e6ba0ac54113c1617900d18ae05d3c0c2d366 (patch) | |
tree | e3cd79aea169a5cfa5960a21e690e9db4be5bff9 /Doc | |
parent | f5e60480b9a4f57962a76290542860b951ac76dd (diff) | |
download | cpython-a87e6ba0ac54113c1617900d18ae05d3c0c2d366.zip cpython-a87e6ba0ac54113c1617900d18ae05d3c0c2d366.tar.gz cpython-a87e6ba0ac54113c1617900d18ae05d3c0c2d366.tar.bz2 |
fileinput.hook_encoded() uses builtin open(), not codecs.open().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/fileinput.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index 9510f76..a55bbe3 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 = |