mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48:52 -06:00
docs: split clause semicolons in new comments
This commit is contained in:
1 parent
36f2d1129e
commit
f10fa21d17
12 files changed
+15
-15
No files matched your search
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
# and Invoke-WebRequest throws on a cut transfer before the hash is read:
|
# and Invoke-WebRequest throws on a cut transfer before the hash is read:
|
||||||
# the site's build rewrites this line there (scripts/sitebootstrap.py).
|
# the site's build rewrites this line there (scripts/sitebootstrap.py).
|
||||||
$mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
$mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
||||||
$defaultInstallSha256 = "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602"
|
$defaultInstallSha256 = "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b"
|
||||||
# The pin above refuses any changed byte: this cap only stops a body that
|
# The pin above refuses any changed byte: this cap only stops a body that
|
||||||
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
||||||
$maximumInstallerBytes = 8MB
|
$maximumInstallerBytes = 8MB
|
||||||
|
|||||||
+1
-1
@@ -1842,7 +1842,7 @@ def read_local_json(path: Path, limit: int) -> object:
|
|||||||
|
|
||||||
def write_atomically(path: Path, data: bytes) -> None:
|
def write_atomically(path: Path, data: bytes) -> None:
|
||||||
"""Write data at path through a scratch file beside it, removed when the
|
"""Write data at path through a scratch file beside it, removed when the
|
||||||
write fails; a scratch that cannot be removed is named in the error."""
|
write fails. A scratch that cannot be removed is named in the error."""
|
||||||
fd, scratch = tempfile.mkstemp(dir=path.parent, prefix=f".{path.name}.", suffix=".part")
|
fd, scratch = tempfile.mkstemp(dir=path.parent, prefix=f".{path.name}.", suffix=".part")
|
||||||
try:
|
try:
|
||||||
with os.fdopen(fd, "wb") as handle:
|
with os.fdopen(fd, "wb") as handle:
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/ins
|
|||||||
# curl or wget stop on a cut transfer before the hash is read: the site's
|
# curl or wget stop on a cut transfer before the hash is read: the site's
|
||||||
# build rewrites this line there (scripts/sitebootstrap.py).
|
# build rewrites this line there (scripts/sitebootstrap.py).
|
||||||
MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
||||||
DEFAULT_INSTALL_SHA256="31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602"
|
DEFAULT_INSTALL_SHA256="9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b"
|
||||||
# The pin above refuses any changed byte: this cap only stops a body that
|
# The pin above refuses any changed byte: this cap only stops a body that
|
||||||
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
||||||
MAX_INSTALLER_BYTES=8388608
|
MAX_INSTALLER_BYTES=8388608
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
"dest": "roms/ports/retrobios/install.py",
|
"dest": "roms/ports/retrobios/install.py",
|
||||||
"repo_path": "install.py",
|
"repo_path": "install.py",
|
||||||
"size": 1448904,
|
"size": 1448904,
|
||||||
"sha256": "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602",
|
"sha256": "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b",
|
||||||
"executable": false
|
"executable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
"archive": {
|
"archive": {
|
||||||
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
||||||
"size": 1502529,
|
"size": 1502529,
|
||||||
"sha256": "f4e3bc9d84ef9fd0f40266370f2f0edce67d2ba90e516c2802b018d80d365a47"
|
"sha256": "f5e68d76e05ceb75c2603a3bf502a0dc2ddeecf9afa6a8be342c651529e238aa"
|
||||||
},
|
},
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
"name": "RetroBIOS/install.py",
|
"name": "RetroBIOS/install.py",
|
||||||
"repo_path": "install.py",
|
"repo_path": "install.py",
|
||||||
"size": 1448904,
|
"size": 1448904,
|
||||||
"sha256": "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602",
|
"sha256": "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b",
|
||||||
"executable": false
|
"executable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
"dest": ".config/modules/retrobios/install.py",
|
"dest": ".config/modules/retrobios/install.py",
|
||||||
"repo_path": "install.py",
|
"repo_path": "install.py",
|
||||||
"size": 1448904,
|
"size": 1448904,
|
||||||
"sha256": "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602",
|
"sha256": "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b",
|
||||||
"executable": false
|
"executable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ def read_local_json(path: Path, limit: int) -> object:
|
|||||||
|
|
||||||
def write_atomically(path: Path, data: bytes) -> None:
|
def write_atomically(path: Path, data: bytes) -> None:
|
||||||
"""Write data at path through a scratch file beside it, removed when the
|
"""Write data at path through a scratch file beside it, removed when the
|
||||||
write fails; a scratch that cannot be removed is named in the error."""
|
write fails. A scratch that cannot be removed is named in the error."""
|
||||||
fd, scratch = tempfile.mkstemp(dir=path.parent, prefix=f".{path.name}.", suffix=".part")
|
fd, scratch = tempfile.mkstemp(dir=path.parent, prefix=f".{path.name}.", suffix=".part")
|
||||||
try:
|
try:
|
||||||
with os.fdopen(fd, "wb") as handle:
|
with os.fdopen(fd, "wb") as handle:
|
||||||
|
|||||||
@@ -769,7 +769,7 @@ def _attach_runners(systems: dict[str, NativeSystem], scraped: dict | None) -> N
|
|||||||
libretro = {str(c) for c in declared} if isinstance(declared, list) else set()
|
libretro = {str(c) for c in declared} if isinstance(declared, list) else set()
|
||||||
standalone = {str(c) for c in scraped.get("standalone_cores") or []}
|
standalone = {str(c) for c in scraped.get("standalone_cores") or []}
|
||||||
# The build decision reads the tagged set (own builds, twins), as the
|
# The build decision reads the tagged set (own builds, twins), as the
|
||||||
# pack does; the runner's name is looked up among the plain names.
|
# pack does. The runner's name is looked up among the plain names.
|
||||||
layout_set = standalone_set(scraped)
|
layout_set = standalone_set(scraped)
|
||||||
profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
|
profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
|
||||||
for system in systems.values():
|
for system in systems.values():
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class AtomPool:
|
|||||||
self._built: dict[tuple[tuple[str, str], ...], bytes | None] = {}
|
self._built: dict[tuple[tuple[str, str], ...], bytes | None] = {}
|
||||||
self.unreadable: list[str] = []
|
self.unreadable: list[str] = []
|
||||||
# .variants/ copies (x.zip.1a2b3c4d) hold members no primary holds,
|
# .variants/ copies (x.zip.1a2b3c4d) hold members no primary holds,
|
||||||
# bbcm.zip.4cc3e25a's fa2b881f among them; primaries answer first.
|
# bbcm.zip.4cc3e25a's fa2b881f among them. Primaries answer first.
|
||||||
archives = (p for p in bios_dir.rglob("*") if is_archive_path(p.name) and p.is_file())
|
archives = (p for p in bios_dir.rglob("*") if is_archive_path(p.name) and p.is_file())
|
||||||
for archive in sorted(archives, key=lambda p: (".variants" in p.parts, p)):
|
for archive in sorted(archives, key=lambda p: (".variants" in p.parts, p)):
|
||||||
try:
|
try:
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ def section(text: str, heading: str, *, stop: int | None = None) -> str:
|
|||||||
higher (the heading's own level by default).
|
higher (the heading's own level by default).
|
||||||
|
|
||||||
The heading is its text, or the full line with its hashes, which then
|
The heading is its text, or the full line with its hashes, which then
|
||||||
fix its level; a trailing ``{ #anchor }`` is optional either way."""
|
fix its level. A trailing ``{ #anchor }`` is optional either way."""
|
||||||
title = heading.lstrip("#")
|
title = heading.lstrip("#")
|
||||||
hashes = heading[: len(heading) - len(title)]
|
hashes = heading[: len(heading) - len(title)]
|
||||||
title = title.strip()
|
title = title.strip()
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class RocknixScraper(unittest.TestCase):
|
|||||||
self.assertIs(entries["scph1001.bin"]["md5_list"], True)
|
self.assertIs(entries["scph1001.bin"]["md5_list"], True)
|
||||||
|
|
||||||
def test_altmd5_is_kept_by_every_fork(self):
|
def test_altmd5_is_kept_by_every_fork(self):
|
||||||
"""checkBios reads altmd5; only the ROCKNIX copy of the reader kept it."""
|
"""checkBios reads altmd5, and only the ROCKNIX copy of the reader kept it."""
|
||||||
script = SCRIPT.replace('"file": "bios/scph5500.bin"', f'"altmd5": "{A}", "file": "bios/scph5500.bin"')
|
script = SCRIPT.replace('"file": "bios/scph5500.bin"', f'"altmd5": "{A}", "file": "bios/scph5500.bin"')
|
||||||
self.assertEqual(self._requirements(script)["scph5500.bin"]["alt_md5"], A)
|
self.assertEqual(self._requirements(script)["scph5500.bin"]["alt_md5"], A)
|
||||||
self.assertEqual(_files(_scraped(script))["scph5500.bin"]["alt_md5"], A)
|
self.assertEqual(_files(_scraped(script))["scph5500.bin"]["alt_md5"], A)
|
||||||
|
|||||||
+1
-1
@@ -2713,7 +2713,7 @@ class TestE2E(unittest.TestCase):
|
|||||||
output = buf.getvalue()
|
output = buf.getvalue()
|
||||||
self.assertIn("test.bin", output)
|
self.assertIn("test.bin", output)
|
||||||
self.assertIn("sha1abc", output)
|
self.assertIn("sha1abc", output)
|
||||||
# The record's path, the one field the schema gives it; a read of
|
# The record's path, the one field the schema gives it. A read of
|
||||||
# "paths" printed nothing.
|
# "paths" printed nothing.
|
||||||
self.assertIn("Path: bios/Mfr/Console/test.bin", output)
|
self.assertIn("Path: bios/Mfr/Console/test.bin", output)
|
||||||
self.assertEqual(missing, 0)
|
self.assertEqual(missing, 0)
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class TheRunningBuildPlacesTheGap(unittest.TestCase):
|
|||||||
|
|
||||||
class EveryGapReportFoldsCase(unittest.TestCase):
|
class EveryGapReportFoldsCase(unittest.TestCase):
|
||||||
"""The command line passed folded_slots and the site did not, so the
|
"""The command line passed folded_slots and the site did not, so the
|
||||||
gaps page listed RetroBat files the CLI report settled; later the CLI
|
gaps page listed RetroBat files the CLI report settled. Later the CLI
|
||||||
passed declared_contents and the site did not, 20 gaps apart. Both
|
passed declared_contents and the site did not, 20 gaps apart. Both
|
||||||
take their scope from packs.crossref.global_report_scope."""
|
take their scope from packs.crossref.global_report_scope."""
|
||||||
|
|
||||||
|
|||||||
@@ -838,7 +838,7 @@ class UnreadableReleaseStopsTheScrape(unittest.TestCase):
|
|||||||
|
|
||||||
def test_emudeck_cheat_sheet_raises(self):
|
def test_emudeck_cheat_sheet_raises(self):
|
||||||
"""A refused cheat sheet was read as empty and its systems left
|
"""A refused cheat sheet was read as empty and its systems left
|
||||||
emudeck.yml; only a 404 says the sheet is gone."""
|
emudeck.yml. Only a 404 says the sheet is gone."""
|
||||||
scraper = emudeck_scraper.Scraper(checkbios_url="pinned", csv_base_url="https://x")
|
scraper = emudeck_scraper.Scraper(checkbios_url="pinned", csv_base_url="https://x")
|
||||||
with mock.patch("urllib.request.urlopen", self._refuse), self.assertRaises(
|
with mock.patch("urllib.request.urlopen", self._refuse), self.assertRaises(
|
||||||
ConnectionError
|
ConnectionError
|
||||||
|
|||||||
Reference in new issue
Block a user