summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-27 20:07:25 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-27 20:07:25 (GMT)
commit44f99d0aaf032be8b27174b3c5703c0d4afbc48e (patch)
tree495748b5251a89c1184561ebc61e69b1089bf96a /Doc
parentb6886505a607e40ba4de7adeedb371c321f5f9aa (diff)
downloadcpython-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.rst2
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 =