Skip to content

Conversation

@AA-Turner
Copy link
Member

Replaces various things with pathlib alternatives. Helps to reduce nesting.

A

Comment on lines 860 to 865
[
"cp",
"-a",
*[
str(dist)
for dist in (Path(self.checkout) / "Doc" / "dist").glob("*")
],
*(self.checkout / "Doc" / "dist").glob("*"),
target / "archives",
]
Copy link
Member Author

Choose a reason for hiding this comment

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

run() calls str() on each item of the command list, no need to duplicate here.

@AA-Turner AA-Turner merged commit 8c93ad1 into python:main Sep 23, 2024
5 checks passed
@AA-Turner AA-Turner deleted the pathlib branch September 23, 2024 20:33
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.

2 participants