MCPcopy Create free account
hub / github.com/celery/celery / _read_text

Function _read_text

celery/utils/sysinfo.py:57–62  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

55
56
57def _read_text(path: str) -> str | None:
58 try:
59 with open(path) as fh:
60 return fh.read()
61 except OSError:
62 return None
63
64
65def _parse_quota(quota_us: str, period_us: str) -> float | None:

Callers 3

_cgroup_pathsFunction · 0.85
_read_v2_quotaFunction · 0.85
_read_v1_quotaFunction · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected