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

Use os.sep in filter_traceback function #5781

Merged
merged 3 commits into from
Feb 1, 2025

Conversation

anmyachev
Copy link
Contributor

This change is aimed at improving platform independence.

@anmyachev anmyachev requested a review from ptillet as a code owner January 31, 2025 19:24
BAD_FILES = [
"/triton/compiler/code_generator.py",
"/ast.py",
f"{sep}triton{sep}compiler{sep}code_generator.py",
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "/triton/compiler/code_generator.py".replace("/", sep) for readibility? Or postprocess entire list at once.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @pawelszczerbuk,

Thanks for the review! I rewrote the logic to postprocessing.

@peterbell10 peterbell10 merged commit a637eb2 into triton-lang:main Feb 1, 2025
7 checks passed
@anmyachev anmyachev deleted the filter-traceback branch February 1, 2025 21: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.

3 participants