Skip to content

Commit

Permalink
Make regex pattern use raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
Delaunay authored Jun 19, 2024
1 parent 0c06292 commit 64e692e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion milabench/validation/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ParsedTraceback:
def find_raise(self):
import re

pattern = re.compile("raise (.*)\(")
pattern = re.compile(r"raise (.*)\(")
for i, line in enumerate(self.lines):
if m := pattern.search(line):
return i, m.group(1)
Expand Down

0 comments on commit 64e692e

Please sign in to comment.