Skip to content

Commit

Permalink
Apply ruff rule RUF039
Browse files Browse the repository at this point in the history
RUF039 First argument to `re.split()` is not raw string
  • Loading branch information
DimitriPapadopoulos committed Jan 24, 2025
1 parent b045238 commit c0ea47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsd-fu/python/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def pathmatch(pattern, filename):
'**': '(?:.+/)*?[^/]+',
}
buf = []
for idx, part in enumerate(re.split('([?*]+/?)', pattern)):
for idx, part in enumerate(re.split(r'([?*]+/?)', pattern)):
if idx % 2:
buf.append(symbols[part])
elif part:
Expand Down

0 comments on commit c0ea47e

Please sign in to comment.