diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-11 04:02:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 04:02:57 -0800 |
commit | 2259b5af3c711b40d2b81eacc1b5d75cda1ae3e2 (patch) | |
tree | 8e4566e24cb54e49aad8cf43cc7458e514477d66 /Doc | |
parent | cb9a1c72c2d3f67046539155b01ae77c219a3c93 (diff) | |
download | cpython-git-2259b5af3c711b40d2b81eacc1b5d75cda1ae3e2.tar.gz |
[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 <eivind.teig@gmail.com>
https://bugs.python.org/issue22062
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pathlib.rst | 6 |
1 files changed, 3 insertions, 3 deletions
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'), |