Title: GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` by barneygale · Pull Request #106331 · python/cpython · GitHub
Open Graph Title: GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` by barneygale · Pull Request #106331 · python/cpython
X Title: GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` by barneygale · Pull Request #106331 · python/cpython
Description: 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. Issue: gh-106330
Open Graph Description: 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 ''...
X Description: 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 '.'...
Opengraph URL: https://github.com/python/cpython/pull/106331
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:799f9728-93df-128f-6501-232e9e329acf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94CE:2FE4F4:2D56D3:40AFBB:696A4C1E |
| html-safe-nonce | 4a56bc548a34d52a1dd77bd06e73d6c1c11d337e846a950a83866e01ff3a4c7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NENFOjJGRTRGNDoyRDU2RDM6NDBBRkJCOjY5NkE0QzFFIiwidmlzaXRvcl9pZCI6IjM2ODY5NzMyOTkzMDQ4NDQzMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae2ee694060f548c9b79765b7a1ca7e2812d703ef3941a2cddfc77d5430e38a3 |
| hovercard-subject-tag | pull_request:1416670897 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/106331/files |
| twitter:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| og:image:alt | 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 ''... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width