Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch python syntax to use Path.parents #4235

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Aug 21, 2024

I think paths.parents[2] is easier to read than path.parent.parent.parent, just applying uniformly. I'd noticed this while looking at #4227

Also remove a couple resolve() calls that shouldn't be necessary since __file__ is absolute (elsewhere in the same files, resolve() is used to resolve potentially relative paths)

@github-actions github-actions bot requested a review from zygoloid August 21, 2024 20:00
@jonmeow jonmeow requested review from chandlerc and removed request for zygoloid August 21, 2024 20:00
Copy link
Contributor

@chandlerc chandlerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@chandlerc chandlerc added this pull request to the merge queue Aug 22, 2024
Merged via the queue into carbon-language:trunk with commit 4293c9f Aug 22, 2024
10 checks passed
@jonmeow jonmeow deleted the parents branch August 22, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants