MCPcopy Create free account
hub / github.com/1jehuang/jcode / _read

Function _read

scripts/profile_spawn.py:76–81  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

74# /proc sampling
75# --------------------------------------------------------------------------- #
76def _read(path: str) -> str | None:
77 try:
78 with open(path, "r") as fh:
79 return fh.read()
80 except OSError:
81 return None
82
83
84def _status_kib(status: str, key: str) -> int | None:

Callers 2

sample_procFunction · 0.85
find_child_serverFunction · 0.85

Calls 1

readMethod · 0.80

Tested by

no test coverage detected