diff options
| author | Mike Salvatore <mike.s.salvatore@gmail.com> | 2022-09-22 20:16:31 -0400 |
|---|---|---|
| committer | Mike Salvatore <mike.s.salvatore@gmail.com> | 2022-09-22 20:16:31 -0400 |
| commit | 063aecddad96472c905edddaf8fe1ed03a37df18 (patch) | |
| tree | 256c5eb2c1b200590c7388ac570b18f6e6f49637 /docs/userguide | |
| parent | 4249da1ecfaca9541d64f0d3c7f08fb22e73e3b9 (diff) | |
| download | python-setuptools-git-063aecddad96472c905edddaf8fe1ed03a37df18.tar.gz | |
Use abspath() instead of resolve() in expand._assert_local()
4249da1ecf uses `pathlib.Path.resolve()` instead of `os.path.abspath()`
to canonicalize path names. `resolve()` resolves symlinks, whereas
`abspath()` does not. `resolve()` can also raise a `RuntimeError` if
infinite loops are discovered while resolving the path. There is some
concern that using `resolve()` would not be backwards compatible. This
commit switches back to `abspath()` but still uses `Path.parents` to
avoid the edge case. See PR #3595 for more details.
Diffstat (limited to 'docs/userguide')
0 files changed, 0 insertions, 0 deletions
