Searched refs:hook_encoded (Results 1 – 9 of 9) sorted by relevance
11 from fileinput import FileInput, hook_encoded252 fi = FileInput(files=t1, openhook=hook_encoded("utf-7"))267 fi = FileInput(files=TESTFN, openhook=hook_encoded('ascii'))321 openhook=hook_encoded('utf-7'))
24 from fileinput import FileInput, hook_encoded298 openhook=hook_encoded('ascii')) as fi:937 result = fileinput.hook_encoded(encoding, errors=errors)965 openhook=hook_encoded('utf-8', errors=errors)) as fi:983 openhook=hook_encoded('utf-7')) as fi:
182 .. function:: hook_encoded(encoding)188 fileinput.FileInput(openhook=fileinput.hook_encoded("iso-8859-1"))``
204 .. function:: hook_encoded(encoding, errors=None)210 fileinput.FileInput(openhook=fileinput.hook_encoded("utf-8",
381 def hook_encoded(encoding): function
407 def hook_encoded(encoding, errors=None): function
319 fileinput.hook_encoded.
1114 fileinput.hook_encoded() now supports an "errors" argument for passing to
1086 :func:`~fileinput.hook_encoded` now supports the *errors* argument.