mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Use bool in fileinput.input() docstring and tests for the inplace argument (GH-111998)
The `.rst` docs, most tests, and typeshed already use bool for it.
This commit is contained in:
parent
823a38a960
commit
a768e12f09
2 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ __getitem__() method which implements the sequence behavior. The
|
|||
sequence must be accessed in strictly sequential order; sequence
|
||||
access and readline() cannot be mixed.
|
||||
|
||||
Optional in-place filtering: if the keyword argument inplace=1 is
|
||||
Optional in-place filtering: if the keyword argument inplace=True is
|
||||
passed to input() or to the FileInput constructor, the file is moved
|
||||
to a backup file and standard output is directed to the input file.
|
||||
This makes it possible to write a filter that rewrites its input file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue