]> granicus.if.org Git - python/commitdiff
fileinput.hook_encoded() uses io.open(), not codecs.open().
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 27 Apr 2016 20:07:25 +0000 (23:07 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 27 Apr 2016 20:07:25 +0000 (23:07 +0300)
Doc/library/fileinput.rst

index a2ffeff83be6c33d79aac26a1e2b2cdd27313833..307a36d4b7a5715239a0fc44e92cdc8bcbedaaa3 100644 (file)
@@ -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 =