Skip to content

Commit f85a465

Browse files
fileinput.hook_encoded() uses builtin open(), not codecs.open().
1 parent d41d451 commit f85a465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/fileinput.rst

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

197197
.. function:: hook_encoded(encoding)
198198

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

202202
Usage example: ``fi =

0 commit comments

Comments
 (0)