Lines Matching defs:FileInput
32 setting the mode parameter to input() or FileInput.__init__().
48 Class FileInput is the implementation; its methods filename(),
57 passed to input() or to the FileInput constructor, the file is moved
73 "fileno", "isfirstline", "isstdin", "FileInput", "hook_compressed",
80 """Return an instance of the FileInput class, which can be iterated.
82 The parameters are passed to the constructor of the FileInput class.
89 _state = FileInput(files, inplace, backup, mode=mode, openhook=openhook,
171 class FileInput:
172 """FileInput([files[, inplace[, backup]]], *, mode=None, openhook=None)
174 Class FileInput is the implementation of the module; its methods
221 raise ValueError("FileInput opening mode must be 'r' or 'rb'")
226 raise ValueError("FileInput cannot use an opening hook in inplace mode")
228 raise ValueError("FileInput openhook must be callable")
275 del self._readline # restore FileInput._readline
371 self._readline = self._file.readline # hide FileInput._readline
402 if encoding is None and "b" not in mode: # EncodingWarning is emitted in FileInput() already.