mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
fileinput.hook_encoded() uses builtin open(), not codecs.open().
This commit is contained in:
parent
f5e60480b9
commit
a87e6ba0ac
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue