Skip to content

Commit

Permalink
Merge pull request #3286 from TDYQ-Liu/patch-1
Browse files Browse the repository at this point in the history
Update generic.py to repair the SyntaxWarning
  • Loading branch information
mirkobrombin authored Mar 25, 2024
2 parents 60b8c98 + 6597c0b commit 7b735cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottles/backend/utils/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def sort_by_version(_list: list, extra_check: str = "async"):
def natural_keys(text):
result = [int(re.search(extra_check, text) is None)]
result.extend(
[int(t) if t.isdigit() else t.lower() for t in re.split("(\d+)", text)]
[int(t) if t.isdigit() else t.lower() for t in re.split(r"(\d+)", text)]
)
return result

Expand Down

0 comments on commit 7b735cc

Please sign in to comment.