diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-07-04 20:51:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 20:51:36 (GMT) |
commit | d5ed72b696f2d26d85f3599abf0693545a1ac4e2 (patch) | |
tree | 05fc68ffaa0f6672a77c2fdecb785820de756a64 /Python/dynload_hpux.c | |
parent | 930df7b07e774636ad200a62a7b4b56564f502b0 (diff) | |
download | cpython-d5ed72b696f2d26d85f3599abf0693545a1ac4e2.zip cpython-d5ed72b696f2d26d85f3599abf0693545a1ac4e2.tar.gz cpython-d5ed72b696f2d26d85f3599abf0693545a1ac4e2.tar.bz2 |
[3.12] GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` (GH-106331) (GH-106372)
We match paths using the `_lines` attribute, which is derived from the
path's string representation. The bug arises because an empty path's string
representation is `'.'` (not `''`), which is matched by the `'*'` wildcard.
(cherry picked from commit b4efdf8cda8fbbd0ca53b457d5f6e46a59348caf)
Diffstat (limited to 'Python/dynload_hpux.c')
0 files changed, 0 insertions, 0 deletions