Skip to content

Commit fc76866

Browse files
authored
Merge pull request #134 from 2bndy5/invalid-escape
fix: use raw str for regex pattern
2 parents eacebd5 + 275148a commit fc76866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circuitpython_build_tools/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
@functools.cache
4444
def _git_version():
4545
version_str = subprocess.check_output(["git", "--version"], encoding="ascii", errors="replace")
46-
version_str = re.search("([0-9]\.*)*[0-9]", version_str).group(0)
46+
version_str = re.search(r"([0-9]\.*)*[0-9]", version_str).group(0)
4747
return tuple(int(part) for part in version_str.split("."))
4848

4949
def git_filter_arg():

0 commit comments

Comments
 (0)