commit | 44f99d0aaf032be8b27174b3c5703c0d4afbc48e | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Wed Apr 27 23:07:25 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Wed Apr 27 23:07:25 2016 +0300 |
tree | 495748b5251a89c1184561ebc61e69b1089bf96a | |
parent | b6886505a607e40ba4de7adeedb371c321f5f9aa [diff] |
fileinput.hook_encoded() uses io.open(), not codecs.open().
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 @@ .. 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 =