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

index 9510f763325b9e4a10cb58e4612b5810af7cb3cb..a55bbe324f63d6a8e7e92633f16e500593e6deb2 100644 (file)
@@ -196,7 +196,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 =