[Python-checkins] cpython (merge 3.5 -> default): fileinput.hook_encoded() uses builtin 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/cb5645b36713
changeset: 101165:cb5645b36713
parent: 101162:f4c6dab59cd8
parent: 101164:f6818806ecc0
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Apr 27 23:06:41 2016 +0300
summary:
fileinput.hook_encoded() uses builtin 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
@@ -195,7 +195,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:`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