Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 258a5d4

Browse files
fileinput.hook_encoded() uses builtin open(), not codecs.open().
2 parents fb7c8ae + a87e6ba commit 258a5d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/fileinput.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ The two following opening hooks are provided by this module:
195195

196196
.. function:: hook_encoded(encoding)
197197

198-
Returns a hook which opens each file with :func:`codecs.open`, using the given
198+
Returns a hook which opens each file with :func:`open`, using the given
199199
*encoding* to read the file.
200200

201201
Usage example: ``fi =

0 commit comments

Comments
 (0)