Repository navigation
Commit 13e9330
committed
pythongh-101360: Fix anchor matching in pathlib.PureWindowsPath.match()
Use `fnmatch` to match path and pattern anchors, just as we do for other
path parts. This allows patterns such as `'*:/Users/*'` to be matched.1 parent 498598e commit 13e9330
3 files changed
Lines changed: 9 additions & 8 deletions
File tree
- Lib
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | 660 | | |
665 | 661 | | |
666 | 662 | | |
667 | 663 | | |
668 | | - | |
669 | 664 | | |
670 | 665 | | |
671 | 666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | | - | |
893 | | - | |
| 892 | + | |
894 | 893 | | |
895 | 894 | | |
896 | 895 | | |
| |||
901 | 900 | | |
902 | 901 | | |
903 | 902 | | |
904 | | - | |
| 903 | + | |
905 | 904 | | |
906 | 905 | | |
907 | 906 | | |
908 | 907 | | |
909 | 908 | | |
910 | 909 | | |
911 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
912 | 915 | | |
913 | 916 | | |
914 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments