Commit 5a57248
This fixes os.link() on platforms (like Linux and OpenIndiana) where the
system link() function does not follow symlinks.
* On Linux, it now follows symlinks by default and if
follow_symlinks=True is specified.
* On Windows, it now raises error if follow_symlinks=True is passed.
* On macOS, it now raises error if follow_symlinks=False is passed and
the system linkat() function is not available at runtime.
* On other platforms, it now raises error if follow_symlinks is passed
with a value that does not match the system link() function behavior
if if the behavior is not known.
Co-authored-by: Joachim Henke <[email protected]>
Co-authored-by: Thomas Kluyver <[email protected]>
1 parent e9253eb commit 5a57248
File tree
6 files changed
+99
-66
lines changed- Doc/library
- Lib/test
- test_inspect
- Misc/NEWS.d/next/Library
- Modules
- clinic
6 files changed
+99
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2338 | 2338 | | |
2339 | 2339 | | |
2340 | 2340 | | |
| 2341 | + | |
2341 | 2342 | | |
2342 | 2343 | | |
2343 | 2344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5844 | 5844 | | |
5845 | 5845 | | |
5846 | 5846 | | |
5847 | | - | |
| 5847 | + | |
5848 | 5848 | | |
5849 | 5849 | | |
5850 | 5850 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1521 | 1521 | | |
1522 | 1522 | | |
1523 | 1523 | | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
1524 | 1568 | | |
1525 | 1569 | | |
1526 | 1570 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
576 | 579 | | |
| 580 | + | |
577 | 581 | | |
578 | 582 | | |
579 | 583 | | |
| |||
4346 | 4350 | | |
4347 | 4351 | | |
4348 | 4352 | | |
4349 | | - | |
| 4353 | + | |
4350 | 4354 | | |
4351 | 4355 | | |
4352 | 4356 | | |
| |||
4364 | 4368 | | |
4365 | 4369 | | |
4366 | 4370 | | |
4367 | | - | |
| 4371 | + | |
4368 | 4372 | | |
4369 | 4373 | | |
4370 | 4374 | | |
4371 | 4375 | | |
4372 | 4376 | | |
4373 | 4377 | | |
4374 | | - | |
4375 | | - | |
4376 | | - | |
4377 | 4378 | | |
4378 | | - | |
4379 | | - | |
4380 | | - | |
4381 | | - | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
4382 | 4384 | | |
| 4385 | + | |
4383 | 4386 | | |
4384 | | - | |
4385 | | - | |
4386 | | - | |
4387 | | - | |
4388 | | - | |
4389 | | - | |
4390 | | - | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
| 4392 | + | |
| 4393 | + | |
| 4394 | + | |
| 4395 | + | |
| 4396 | + | |
| 4397 | + | |
| 4398 | + | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
| 4402 | + | |
| 4403 | + | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
4391 | 4409 | | |
| 4410 | + | |
4392 | 4411 | | |
4393 | 4412 | | |
4394 | 4413 | | |
| |||
4406 | 4425 | | |
4407 | 4426 | | |
4408 | 4427 | | |
4409 | | - | |
4410 | | - | |
4411 | | - | |
4412 | | - | |
4413 | | - | |
4414 | | - | |
4415 | | - | |
4416 | | - | |
4417 | | - | |
4418 | | - | |
4419 | | - | |
4420 | | - | |
4421 | | - | |
4422 | | - | |
4423 | | - | |
4424 | | - | |
4425 | | - | |
4426 | | - | |
4427 | | - | |
4428 | | - | |
4429 | | - | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
4430 | 4432 | | |
4431 | 4433 | | |
4432 | | - | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
4433 | 4437 | | |
4434 | | - | |
4435 | | - | |
4436 | | - | |
4437 | | - | |
4438 | | - | |
4439 | | - | |
4440 | | - | |
4441 | | - | |
4442 | | - | |
4443 | | - | |
4444 | | - | |
4445 | 4438 | | |
4446 | | - | |
| 4439 | + | |
4447 | 4440 | | |
4448 | 4441 | | |
4449 | 4442 | | |
| |||
5935 | 5928 | | |
5936 | 5929 | | |
5937 | 5930 | | |
5938 | | - | |
5939 | | - | |
5940 | | - | |
5941 | | - | |
5942 | | - | |
5943 | | - | |
5944 | 5931 | | |
5945 | 5932 | | |
5946 | 5933 | | |
| |||
10613 | 10600 | | |
10614 | 10601 | | |
10615 | 10602 | | |
10616 | | - | |
10617 | | - | |
10618 | | - | |
10619 | | - | |
10620 | | - | |
10621 | | - | |
10622 | 10603 | | |
10623 | 10604 | | |
10624 | 10605 | | |
| |||
0 commit comments