mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 01:57:48 -06:00
refactor: one copy of each duplicated helper
This commit is contained in:
1 parent
2c8a9cfad8
commit
238f70c7a7
11 files changed
+49
-79
No files matched your search
@@ -536,3 +536,7 @@ def _prose_path(
|
||||
before.rfind("(")) + 1:]
|
||||
path = f"{word} {path}"
|
||||
return path, role, path_start, (path_start, match.end("path"))
|
||||
|
||||
|
||||
def span(first: int, last: int) -> str:
|
||||
return str(first) if first == last else f"{first}-{last}"
|
||||
Reference in new issue
Block a user