PyDocs

Nav

Command-line interface libraries

hook_encoded

fileinput

function (source) Deprecated 3.10
  • hook_encoded(encoding, errors=None)
Deprecated since 3.10. This function is deprecated since fileinput.input() and FileInput now have encoding and errors parameters.
Returns a hook which opens each file with open(), using the given encoding and errors to read the file.
Changed in 3.6
  • 3.6: Added the optional errors parameter.
0 Examples
No examples for fileinput/hook_encoded.
See Also
No see-alsos for fileinput/hook_encoded
0 Notes
No notes for hook_encoded