Skip to content

Commit

Permalink
Use os.sep in filter_traceback function (#5781)
Browse files Browse the repository at this point in the history
This change is aimed at improving platform independence.

---------

Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Feb 1, 2025
1 parent 84a5084 commit a637eb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/triton/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def filter_traceback(e: BaseException):
"/triton/compiler/code_generator.py",
"/ast.py",
]
BAD_FILES = [bad_file.replace("/", os.sep) for bad_file in BAD_FILES]

tb = e.__traceback__
frames = []
Expand Down

0 comments on commit a637eb2

Please sign in to comment.