From c87b32b04ddfbc51e7c9bac9a32ad0f04bc2d0cd Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Wed, 6 Jul 2022 10:58:13 -0700 Subject: [PATCH 1/4] Add docstring to pathlib Closes #93654 Issue: gh-93654 --- Lib/pathlib.py | 3 +++ .../next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst | 1 + 2 files changed, 4 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst diff --git a/Lib/pathlib.py b/Lib/pathlib.py index bb440c9d57216a..9babe6dd697bec 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -1,3 +1,6 @@ +"""Classes representing filesystem paths with semantics appropriate for +different operating systems.""" + import fnmatch import functools import io diff --git a/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst b/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst new file mode 100644 index 00000000000000..a85bc50f45d52a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst @@ -0,0 +1 @@ +Add docstring to :module:`pathlib` From 2acf6ded420c4b391629960fa13dc88d1594806b Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Wed, 6 Jul 2022 13:41:47 -0700 Subject: [PATCH 2/4] Fix NEWS entry --- .../next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst b/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst index a85bc50f45d52a..9cc3c60663221c 100644 --- a/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst +++ b/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst @@ -1 +1 @@ -Add docstring to :module:`pathlib` +Add docstring to pathlib From 75c5968d0e2e079860425891a7c5ebfe8a31a391 Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Wed, 6 Jul 2022 18:26:27 -0700 Subject: [PATCH 3/4] Update Lib/pathlib.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Éric --- Lib/pathlib.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 9babe6dd697bec..69e7d558a056fc 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -1,5 +1,9 @@ -"""Classes representing filesystem paths with semantics appropriate for -different operating systems.""" +"""Object-oriented filesystem paths. + +This module provides classes to represent abstract paths and concrete +paths with operations that have semantics appropriate for different +operating systems. +""" import fnmatch import functools From feceae1db3d9dad94b6c458e5b44252c362a6cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric?= Date: Thu, 7 Jul 2022 04:49:18 -0400 Subject: [PATCH 4/4] remove news --- .../next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst diff --git a/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst b/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst deleted file mode 100644 index 9cc3c60663221c..00000000000000 --- a/Misc/NEWS.d/next/Library/2022-07-06-10-58-02.gh-issue-93654.lo82FG.rst +++ /dev/null @@ -1 +0,0 @@ -Add docstring to pathlib