Commit 4117dc7
authored
Always remove authority section when cleaning local URL path (#13510)
pathname2url() generates a URL with an authority section on Windows
(all versions) and non-Windows (3.12+ for paths beginning //, 3.14+
for paths beginning /). We need to strip this prefix in order to
return a URL path rather than a complete URL.1 parent 2e21934 commit 4117dc7
File tree
4 files changed
+9
-47
lines changed- news
- src/pip/_internal/models
- tests
- lib
- unit
4 files changed
+9
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
1370 | 1369 | | |
1371 | 1370 | | |
1372 | 1371 | | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | 1372 | | |
1390 | 1373 | | |
1391 | | - | |
| 1374 | + | |
1392 | 1375 | | |
1393 | 1376 | | |
1394 | 1377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
309 | 307 | | |
310 | 308 | | |
311 | 309 | | |
312 | | - | |
| 310 | + | |
313 | 311 | | |
314 | 312 | | |
315 | 313 | | |
| |||
393 | 391 | | |
394 | 392 | | |
395 | 393 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 394 | + | |
408 | 395 | | |
409 | 396 | | |
410 | 397 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 398 | + | |
| 399 | + | |
416 | 400 | | |
417 | 401 | | |
418 | 402 | | |
| |||
425 | 409 | | |
426 | 410 | | |
427 | 411 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
| 412 | + | |
434 | 413 | | |
435 | 414 | | |
436 | 415 | | |
| |||
0 commit comments