mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48: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
@@ -32,12 +32,12 @@ class _Member(io.RawIOBase):
|
||||
super().close()
|
||||
|
||||
|
||||
def _opener(source: Path, member: str | None) -> Callable[[], Readable]:
|
||||
def member_opener(source: Path, member: str | None) -> Callable[[], Readable]:
|
||||
if member is None:
|
||||
return lambda: source.open("rb")
|
||||
return lambda: _Member(source, member)
|
||||
|
||||
|
||||
def _member_sha1(path: Path, name: str) -> str:
|
||||
def member_sha1(path: Path, name: str) -> str:
|
||||
with _Member(path, name) as stream:
|
||||
return stream_hashes(stream, frozenset({"sha1"}))["sha1"]
|
||||
Reference in new issue
Block a user