Lines Matching refs:openhook
26 replaced by ``sys.stdin`` and the optional arguments *mode* and *openhook*
50 *openhook* parameter to :func:`fileinput.input` or :class:`FileInput()`. The
59 .. function:: input(files=None, inplace=False, backup='', *, mode='r', openhook=None, encoding=None…
78 The keyword parameters *mode* and *openhook* are now keyword-only.
144 .. class:: FileInput(files=None, inplace=False, backup='', *, mode='r', openhook=None, encoding=Non…
158 The *openhook*, when given, must be a function that takes two arguments,
160 cannot use *inplace* and *openhook* together.
162 You can specify *encoding* and *errors* that is passed to :func:`open` or *openhook*.
181 The keyword parameter *mode* and *openhook* are now keyword-only.
211 … Usage example: ``fi = fileinput.FileInput(openhook=fileinput.hook_compressed, encoding="utf-8")``
223 fileinput.FileInput(openhook=fileinput.hook_encoded("utf-8",