mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38:52 -06:00
refactor: public names for cross-module reads
This commit is contained in:
1 parent
f371790dc6
commit
3853ca2f1c
254 files changed
+2955
-2969
No files matched your search
@@ -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(",")
|
||||
|
||||
Reference in new issue
Block a user