mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 11:58:53 -06:00
refactor: join name lists through core.text
This commit is contained in:
1 parent
4b8e91bb6f
commit
a9d8e571c1
16 files changed
+54
-56
No files matched your search
@@ -11,6 +11,7 @@ from collections.abc import Iterator
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
from core.text import series
|
||||
from core import upstream
|
||||
from core.artifacts import repository_output_lock, write_if_changed
|
||||
from core.paths import REPO_ROOT
|
||||
@@ -482,7 +483,7 @@ def requested_by(profile: dict, value: str | dict | None) -> str:
|
||||
labels.append(label)
|
||||
if not labels or not _two_repositories(profile):
|
||||
return ""
|
||||
return labels[0] if len(labels) == 1 else ", ".join(labels[:-1]) + f" and {labels[-1]}"
|
||||
return series(labels)
|
||||
|
||||
|
||||
def _two_repositories(profile: dict) -> bool:
|
||||
|
||||
Reference in new issue
Block a user