Title: [3.12] GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` (GH-106331) by barneygale · Pull Request #106372 · python/cpython · GitHub
Open Graph Title: [3.12] GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` (GH-106331) by barneygale · Pull Request #106372 · python/cpython
X Title: [3.12] GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` (GH-106331) by barneygale · Pull Request #106372 · 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 ...
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/106372
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ba16b06f-38fa-758f-fd5c-c28edd935205 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C966:1B7E6F:FCB07C:15CF91C:696A8983 |
| html-safe-nonce | 64df8b6ffac91f955ca7f1c7310b3a926c0ec310b188cd3c47a91483ea113e1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTY2OjFCN0U2RjpGQ0IwN0M6MTVDRjkxQzo2OTZBODk4MyIsInZpc2l0b3JfaWQiOiIzMDQ3MTU2NDcwODA1ODU4NjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ac10d0c6973eff01e21e60ccfbc01d5fea762162bdad13ab5f0ccb7a6086375f |
| hovercard-subject-tag | pull_request:1418647126 |
| 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/_view_fragments/voltron/pull_requests/show/python/cpython/106372/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/9eb424e30adee0ca0ed0dd9c7c5aa455b0117b37d5e2368176dca4c3ebeb824e/python/cpython/pull/106372 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9eb424e30adee0ca0ed0dd9c7c5aa455b0117b37d5e2368176dca4c3ebeb824e/python/cpython/pull/106372 |
| 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:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barneygale |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width