diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2024-01-27 21:47:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 21:47:55 (GMT) |
commit | a768e12f094a9b14a9a1680fb50330e1050716c4 (patch) | |
tree | 228f9823f2295ac35b9c98f4534cbe05161226d1 /Lib/fileinput.py | |
parent | 823a38a960c245cbf309ef29120d3690ba1bcd2c (diff) | |
download | cpython-a768e12f094a9b14a9a1680fb50330e1050716c4.zip cpython-a768e12f094a9b14a9a1680fb50330e1050716c4.tar.gz cpython-a768e12f094a9b14a9a1680fb50330e1050716c4.tar.bz2 |
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.
Diffstat (limited to 'Lib/fileinput.py')
-rw-r--r-- | Lib/fileinput.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fileinput.py b/Lib/fileinput.py index 1b25f28..3dba3d2 100644 --- a/Lib/fileinput.py +++ b/Lib/fileinput.py @@ -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 |