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

tc_build: llvm: Switch to Path.glob() #239

Merged

Conversation

nathanchance
Copy link
Member

A new ruff warning suggests switching to Path.glob() over glob.glob():

tc_build/llvm.py:258:12: PTH207 Replace `glob` with `Path.glob` or `Path.rglob`

While it is a little more verbose, it allows us to drop an import, so
just do it to silence the warning.

A new ruff warning suggests switching to Path.glob() over glob.glob():

  tc_build/llvm.py:258:12: PTH207 Replace `glob` with `Path.glob` or `Path.rglob`

While it is a little more verbose, it allows us to drop an import, so
just do it to silence the warning.

Signed-off-by: Nathan Chancellor <[email protected]>
@nathanchance nathanchance merged commit 5297456 into ClangBuiltLinux:main Aug 7, 2023
6 checks passed
@nathanchance nathanchance deleted the fix-new-ruff-pth207 branch August 7, 2023 16:07
onettboots pushed a commit to onettboots/boolx-clang-build that referenced this pull request Oct 25, 2024
…-pth207

tc_build: llvm: Switch to Path.glob()

Signed-off-by: onettboots <[email protected]>
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