Skip to content

Commit b597992

Browse files
committed
Revert "[perf-training] Check extension in findFilesWithExtension"
This reverts commit 1fbbf92.
1 parent b84ea7a commit b597992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/perf-training/perf-helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def findFilesWithExtension(path, extension):
2323
filenames = []
2424
for root, dirs, files in os.walk(path):
2525
for filename in files:
26-
if os.path.splitext(filename)[1] == extension:
26+
if filename.endswith(extension):
2727
filenames.append(os.path.join(root, filename))
2828
return filenames
2929

0 commit comments

Comments
 (0)