]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39285: Clarify example for PurePath.match (GH-19458)
authorTim Lo <timlo@users.noreply.github.com>
Sun, 19 Apr 2020 09:43:11 +0000 (05:43 -0400)
committerGitHub <noreply@github.com>
Sun, 19 Apr 2020 09:43:11 +0000 (02:43 -0700)
commitc12375aa0b838d34067efa3f1b9a1fbc632d0413
tree68a82cf4d5a2ba34f64f643620fcbc19814fed3d
parent4fe002045fcf40823154b709fef0948b2bc5e934
bpo-39285: Clarify example for PurePath.match (GH-19458)

Fixes Issue39285

The example incorrectly returned True for match.

Furthermore the example is ambiguous in its usage of PureWindowsPath.
Windows is case-insensitve, however the underlying match functionality
utilizes fnmatch.fnmatchcase.

Automerge-Triggered-By: @pitrou
Doc/library/pathlib.rst