fileinput.hook_encoded() uses builtin open(), not codecs.open().

This commit is contained in:
Serhiy Storchaka 2016-04-27 23:06:41 +03:00
commit 258a5d4dcb

View file

@ -195,7 +195,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:`open`, using the given
*encoding* to read the file.
Usage example: ``fi =