Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Commit655fc8a
authored
pathlib ABCs: remove caching of path parser case sensitivity (#130194)
Remove the caching `_is_case_sensitive()` function. The cache used to speed up `PurePath.[full_]match()` and `Path.[r]glob()`,but that's no longer the case - these methods use`self.parser is posixpath` to determine case sensitivity.This makes the `pathlib._abc` module a little easier to backport to Python3.8, where `functools.cache()` is unavailable.1 parente7f00cd commit655fc8a
1 file changed
+4
-11
lines changedLines changed: 4 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
19 | 18 |
| |
20 | 19 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 | 20 |
| |
27 | 21 |
| |
28 | 22 |
| |
| |||
201 | 195 |
| |
202 | 196 |
| |
203 | 197 |
| |
204 |
| - | |
| 198 | + | |
205 | 199 |
| |
206 | 200 |
| |
207 | 201 |
| |
| |||
297 | 291 |
| |
298 | 292 |
| |
299 | 293 |
| |
| 294 | + | |
300 | 295 |
| |
301 |
| - | |
302 |
| - | |
303 |
| - | |
| 296 | + | |
304 | 297 |
| |
305 | 298 |
| |
306 |
| - | |
| 299 | + | |
307 | 300 |
| |
308 | 301 |
| |
309 | 302 |
| |
|
0 commit comments
Comments
(0)