Python stdlib module — fileinput. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.filelineno()Neutralfilelineno()
Return the line number in the current file. Before the first line
.fileno()Neutralfileno()
Return the file number of the current file. When no file is currently
.hook_compressed()Neutralhook_compressed(filename, mode, encoding, errors)
hook_compressed function.
.input()Neutralinput(files, inplace, backup, mode, openhook, encoding, errors)
Return an instance of the FileInput class, which can be iterated.
.isfirstline()Neutralisfirstline()
Returns true the line just read is the first line of its file,
.lineno()Neutrallineno()
Return the cumulative line number of the line that has just been read.
| FQN | Field | |
|---|---|---|
| fileinput | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import fileinput