From 3da5c5c76d90ddfc4c188cc801d9387501b63b7f Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 6 Aug 2018 13:04:30 -0700 Subject: [PATCH] bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645) Patch by Terry Jan Reedy. (cherry picked from commit 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1) Co-authored-by: Xtreak --- Doc/library/pathlib.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 7b3c9ecc2f09..0377027da56f 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -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 -- 2.47.3