(self, s: str)
| 637 | return self._unused_configs.copy() |
| 638 | |
| 639 | def compile_glob(self, s: str) -> Pattern[str]: |
| 640 | # Compile one of the glob patterns to a regex so that '.*' can |
| 641 | # match *zero or more* module sections. This means we compile |
| 642 | # '.*' into '(\..*)?'. |
| 643 | parts = s.split(".") |
| 644 | expr = re.escape(parts[0]) if parts[0] != "*" else ".*" |
| 645 | for part in parts[1:]: |
| 646 | expr += re.escape("." + part) if part != "*" else r"(\..*)?" |
| 647 | return re.compile(expr + "\\Z") |
| 648 | |
| 649 | def select_options_affecting_cache(self) -> tuple[str, list[object]]: |
| 650 | """Return (platform, [values...]) for options that affect the cache. |
no test coverage detected