bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)

Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657fb8c)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2018-08-06 13:04:30 -07:00 • committed by GitHub
parent 278d975ce1
commit 3da5c5c76d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -897,7 +897,8 @@ call fails (for example because the path doesn't exist):
>>> p.read_text()
'Text file contents'
The optional parameters have the same meaning as in :func:`open`.
The file is opened and then closed. The optional parameters have the same
meaning as in :func:`open`.
.. versionadded:: 3.5