Skip to content

Commit

Permalink
Use raw string for pattern in re.search (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
ferdnyc and ssbarnea authored Jun 14, 2024
1 parent a466d64 commit 0e09a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main() -> None:
for env in other_names:
env_python = default_python
# Check for using correct python version for other_names like py310-devel.
match = re.search("py(\d+)", env)
match = re.search(r"py(\d+)", env)
if match:
py_version = match.groups()[0]
env_python = f"{py_version[0]}.{py_version[1:]}"
Expand Down

0 comments on commit 0e09a72

Please sign in to comment.