From 44f99d0aaf032be8b27174b3c5703c0d4afbc48e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 27 Apr 2016 23:07:25 +0300 Subject: fileinput.hook_encoded() uses io.open(), not codecs.open(). --- Doc/library/fileinput.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index a2ffeff..307a36d 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -181,7 +181,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:`io.open`, using the given *encoding* to read the file. Usage example: ``fi = -- cgit v0.12