[3.12] gh-112758: Updated pathlib documentation for PurePath.match (GH-112814) (#112882)

gh-112758: Updated pathlib documentation for PurePath.match (GH-112814)
(cherry picked from commit ed8720ace4)

Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-12-08 19:26:46 +01:00 committed by GitHub
parent 0260c38e80
commit 259a4af3d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -576,6 +576,9 @@ Pure paths provide the following methods and properties:
>>> PurePath('a/b.py').match(pattern)
True
.. versionchanged:: 3.12
Accepts an object implementing the :class:`os.PathLike` interface.
As with other methods, case-sensitivity follows platform defaults::
>>> PurePosixPath('b.py').match('*.PY')