Commit 258a5d4d authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parents fb7c8ae4 a87e6ba0
...@@ -195,7 +195,7 @@ The two following opening hooks are provided by this module: ...@@ -195,7 +195,7 @@ The two following opening hooks are provided by this module:
.. function:: hook_encoded(encoding) .. 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. *encoding* to read the file.
Usage example: ``fi = Usage example: ``fi =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment