MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / read_uris

Function read_uris

aura/prefetch.py:85–94  ·  view source on GitHub ↗
(file_input: TextIO)

Source from the content-addressed store, hash-verified

83
84
85def read_uris(file_input: TextIO) -> Iterable[str]:
86 for line in file_input:
87 line = line.strip()
88 if line.startswith("#") or not line:
89 continue
90 else:
91 if (not line.startswith("mirror://")) and mirror.LocalMirror.get_mirror_path():
92 line = "mirror://" + line
93
94 yield line

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
get_mirror_pathMethod · 0.80

Tested by

no test coverage detected