Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygale barneygale commented Nov 13, 2024

In strict mode, raise NotADirectoryError if we encounter a non-directory while we still have path parts left to process.

We use a part_count variable rather than len(rest) because the rest stack also contains markers for unresolved symlinks.. (cherry picked from commit fd4b545)

….realpath()` (pythonGH-120127)

In strict mode, raise `NotADirectoryError` if we encounter a non-directory
while we still have path parts left to process.

We use a `part_count` variable rather than `len(rest)` because the `rest`
stack also contains markers for unresolved symlinks..
(cherry picked from commit fd4b545)

Co-authored-by: Barney Gale <[email protected]>
@barneygale barneygale enabled auto-merge (squash) November 13, 2024 23:27
@barneygale barneygale merged commit b66728d into python:3.13 Nov 13, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant