Skip to content

Commit

Permalink
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
Browse files Browse the repository at this point in the history
Patch by Terry Jan Reedy.
  • Loading branch information
tirkarthi authored and terryjreedy committed Aug 6, 2018
1 parent 8f7bb10 commit 5b2657f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/pathlib.rst
Expand Up @@ -915,7 +915,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

Expand Down

0 comments on commit 5b2657f

Please sign in to comment.