refactor: public names for cross-module reads

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 22:59:51 +01:00
1 parent f371790dc6
commit 3853ca2f1c
254 files changed
+2955 -2969

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ sys.path.insert(0, os.path.dirname(__file__))
from core import upstream
from core.cli import require_directory
from model.safeparse import yaml_load
from scraper.mame_parser import _MACHINE_MACROS, strip_comments
from scraper.mame_parser import MACHINE_MACROS, strip_comments
# An optional role word names the repository the lines are in.
DRIVER_REF = re.compile(r"^(?:(source|upstream) )?(src/[\w./+-]+):(\d+)$")
@@ -50,7 +50,7 @@ class Finding:
def declares(line: str, set_name: str) -> bool:
"""Whether this line is the machine declaration of that set."""
clean = strip_comments(line)
match = _MACHINE_MACROS.search(clean)
match = MACHINE_MACROS.search(clean)
if not match:
return False
args = clean[match.end():].split(",")