Skip to content

Commit

Permalink
Use re.search instead of re.match
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Jan 8, 2024
1 parent 1efc32c commit cdcce80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_reqs_from_path(path):
content = Path(path).read_text()

# Do not include in all requirements if this special package is in there
in_all = bool(re.match(r"^error-(.*)-not-available-yet$", content, re.MULTILINE))
in_all = re.search(r"^error-(.*)-not-available-yet$", content, re.MULTILINE) is None
return [
req for req in content.splitlines() if req and not req.startswith("#")
], in_all
Expand Down

0 comments on commit cdcce80

Please sign in to comment.