diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-27 20:07:25 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-27 20:07:25 (GMT) |
commit | 44f99d0aaf032be8b27174b3c5703c0d4afbc48e (patch) | |
tree | 495748b5251a89c1184561ebc61e69b1089bf96a /Doc | |
parent | b6886505a607e40ba4de7adeedb371c321f5f9aa (diff) | |
download | cpython-44f99d0aaf032be8b27174b3c5703c0d4afbc48e.zip cpython-44f99d0aaf032be8b27174b3c5703c0d4afbc48e.tar.gz cpython-44f99d0aaf032be8b27174b3c5703c0d4afbc48e.tar.bz2 |
fileinput.hook_encoded() uses io.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 a2ffeff..307a36d 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -181,7 +181,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:`io.open`, using the given *encoding* to read the file. Usage example: ``fi = |