[Python-checkins] cpython (3.5): fileinput.hook_encoded() uses builtin open(), not codecs.open().

serhiy.storchaka python-checkins at python.org
Wed Apr 27 16:07:53 EDT 2016


https://hg.python.org/cpython/rev/f6818806ecc0
changeset:   101164:f6818806ecc0
branch:      3.5
parent:      101157:49561532504c
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed Apr 27 23:06:15 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
@@ -196,7 +196,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