Skip to content

Commit a4d0aa8

Browse files
authored
fixing python 3.12 syntax warning re invalid escape sequence
1 parent 626b207 commit a4d0aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge_pics/search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def query(search_str: str, size: SIZES = ImageSizes.MEDIUM) -> Optional[List]:
3434

3535
xlist = []
3636
for path in paths:
37-
matching_path = re.sub("[\d-]+", " ", path).strip()
37+
matching_path = re.sub(r"[\d-]+", " ", path).strip()
3838
m = fuzz.token_sort_ratio(matching_path, search_str.lower())
3939
xlist.append((path, m))
4040
if m > 95:

0 commit comments

Comments
 (0)