do not backslash-escape forward slashes

This commit is contained in:
Jeff Epler 2021-12-17 09:34:47 -06:00
parent da4f5bdaef
commit bd282bb1be
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -68,8 +68,8 @@ def set_boards_to_build(build_all):
if not build_all: if not build_all:
boards_to_build = set() boards_to_build = set()
board_pattern = re.compile(r"^ports\/[^/]+\/boards\/([^/]+)\/") board_pattern = re.compile(r"^ports/[^/]+/boards/([^/]+)/")
port_pattern = re.compile(r"^ports\/([^/]+)\/") port_pattern = re.compile(r"^ports/([^/]+)/")
for p in changed_files: for p in changed_files:
# See if it is board specific # See if it is board specific
board_matches = board_pattern.search(p) board_matches = board_pattern.search(p)
@ -120,7 +120,7 @@ def set_docs_to_build(build_all):
doc_match = build_all doc_match = build_all
if not build_all: if not build_all:
doc_pattern = re.compile( doc_pattern = re.compile(
r"^(?:docs|extmod/ulab|(?:(?:ports\/\w+\/bindings|shared-bindings)\S+\.c|conf\.py|tools\/extract_pyi\.py|requirements-doc\.txt)$)|(?:-stubs|\.(?:md|MD|rst|RST))$" r"^(?:docs|extmod/ulab|(?:(?:ports/\w+/bindings|shared-bindings)\S+\.c|conf\.py|tools/extract_pyi\.py|requirements-doc\.txt)$)|(?:-stubs|\.(?:md|MD|rst|RST))$"
) )
for p in changed_files: for p in changed_files:
if doc_pattern.search(p): if doc_pattern.search(p):