]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39285: Clarify example for PurePath.match (GH-19458)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Apr 2020 10:03:42 +0000 (03:03 -0700)
committerGitHub <noreply@github.com>
Sun, 19 Apr 2020 10:03:42 +0000 (03:03 -0700)
commit143147d94f3e55a929327ddae1d0d3c260d71cef
tree09d439dd68a2fda517557b312141ea6b441271aa
parent0abb548cc7b239fbe426ca9e00968130e53ffc98
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
(cherry picked from commit c12375aa0b838d34067efa3f1b9a1fbc632d0413)

Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
Doc/library/pathlib.rst