fileinput.hook_encoded() uses io.open(), not codecs.open().
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 @@
 
 .. 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 =