Skip to content

Commit

Permalink
[Fix](mlu-ops): modify python-version in test/mlu_op_gtest/tools/gtes… (
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrelYy authored Jan 19, 2024
1 parent 1be0190 commit bc1cc23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/mlu_op_gtest/tools/gtest_style.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/python3

import os
import io
import sys
import re

Expand Down Expand Up @@ -103,7 +104,7 @@ def check_macro(line):
malloc_error = []
for cpp in all_cpps:
# print("Checking %s \n" %(cpp))
fin = open(cpp, "r")
fin = io.open(cpp, "r", encoding="utf-8")
lines = fin.readlines()
func_mark = find_func(lines)
if len(func_mark) == 0:
Expand Down

0 comments on commit bc1cc23

Please sign in to comment.