Skip to content

Commit cdcce80

Browse files
committed
Use re.search instead of re.match
1 parent 1efc32c commit cdcce80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_reqs_from_path(path):
1111
content = Path(path).read_text()
1212

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

0 commit comments

Comments
 (0)