refactor: drop dead scraper import fallbacks

This commit is contained in:
Abdessamad Derraz committed 2026-11-17 07:23:39 +01:00
1 parent 3e732fd57e
commit 34eee3f087
27 files changed
+233 -424

No files matched your search

@@ -23,6 +23,8 @@ from datetime import datetime, timezone
import yaml
from . import BaseTargetScraper
from ..base_scraper import fetch_bytes, github_headers
from ..rocknix_scraper import standalone_emulators
PLATFORM_NAME = "rocknix"
@@ -31,13 +33,6 @@ GITHUB_API = "https://api.github.com/repos/ROCKNIX/distribution/contents"
EMULATORS_MK = "projects/ROCKNIX/packages/virtual/emulators/package.mk"
DEVICES_DIR = "projects/ROCKNIX/devices"
try:
from ..base_scraper import fetch_bytes, github_headers
from ..rocknix_scraper import standalone_emulators
except ImportError:
from scraper.base_scraper import fetch_bytes, github_headers
from scraper.rocknix_scraper import standalone_emulators
# `NAME="a b \
# c"` or `NAME+=" a b"`, continuation lines joined first.
_ASSIGN_RE = re.compile(r'^\s*(?:\[[^\]]*\]\s*&&\s*)?(\w+)(\+?=)"([^"]*)"', re.MULTILINE)