]> granicus.if.org Git - python/commitdiff
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
authorXtreak <tirkarthi@users.noreply.github.com>
Mon, 6 Aug 2018 19:55:03 +0000 (01:25 +0530)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 6 Aug 2018 19:55:03 +0000 (15:55 -0400)
Patch by Terry Jan Reedy.

Doc/library/pathlib.rst

index 0929ee27c19e164dc8d8c24f9a2f3495ee45dc6d..ec604f6815937d8184b7ed14d0cec635537d624e 100644 (file)
@@ -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