From 2259b5af3c711b40d2b81eacc1b5d75cda1ae3e2 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 11 Feb 2019 04:02:57 -0800 Subject: [3.7] bpo-22062: Updated docstring and documentation for pathlib (GH-8519) (GH-11817) Original patch by Mike Short https://bugs.python.org/issue22062 (cherry picked from commit 537b6caa565ec2fc304ba6f4400cd347ce2af64b) Co-authored-by: Eivind Teig https://bugs.python.org/issue22062 --- Doc/library/pathlib.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Doc') diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index b4ae293d14..7d4b41b1dd 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -718,7 +718,7 @@ call fails (for example because the path doesn't exist): .. method:: Path.glob(pattern) - Glob the given *pattern* in the directory represented by this path, + Glob the given relative *pattern* in the directory represented by this path, yielding all matching files (of any kind):: >>> sorted(Path('.').glob('*.py')) @@ -970,8 +970,8 @@ call fails (for example because the path doesn't exist): .. method:: Path.rglob(pattern) - This is like calling :meth:`Path.glob` with "``**``" added in front of the - given *pattern*:: + This is like calling :func:`Path.glob` with "``**/``" added in front of the + given relative *pattern*:: >>> sorted(Path().rglob("*.py")) [PosixPath('build/lib/pathlib.py'), -- cgit v1.2.1