[Python-checkins] cpython (2.7): fileinput.hook_encoded() uses io.open(), not codecs.open().
serhiy.storchaka
python-checkins at python.org
Wed Apr 27 16:07:55 EDT 2016
https://hg.python.org/cpython/rev/224d83c81edd
changeset: 101166:224d83c81edd
branch: 2.7
parent: 101163:2ef61a4747eb
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Apr 27 23:07:25 2016 +0300
summary:
fileinput.hook_encoded() uses io.open(), not codecs.open().
files:
Doc/library/fileinput.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst
--- 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 =
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list