Skip to content

Commit 8b9eb45

Browse files
Merge pull request #308 from emmanuel-ferdman/master
Resolve regex calls warnings
2 parents 506f103 + bcb7d71 commit 8b9eb45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel_tuner/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def check_kernel_output(self, func, gpu_args, instance, answer, atol, verify, ve
494494
# run the kernel
495495
check = self.run_kernel(func, gpu_args, instance)
496496
if not check:
497-
# runtime failure occured that should be ignored, skip correctness check
497+
# runtime failure occurred that should be ignored, skip correctness check
498498
return
499499

500500
# retrieve gpu results to host memory
@@ -894,7 +894,7 @@ def split_argument_list(argument_list):
894894
match = re.match(regex, arg, re.S)
895895
if not match:
896896
raise ValueError("error parsing templated kernel argument list")
897-
type_list.append(re.sub(r"\s+", " ", match.group(1).strip(), re.S))
897+
type_list.append(re.sub(r"\s+", " ", match.group(1).strip(), flags=re.S))
898898
name_list.append(match.group(2).strip())
899899
return type_list, name_list
900900

0 commit comments

Comments
 (0)