Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
57
def
_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
65
def
_parse_quota(quota_us: str, period_us: str) -> float | None:
Callers
3
_cgroup_paths
Function · 0.85
_read_v2_quota
Function · 0.85
_read_v1_quota
Function · 0.85
Calls
1
open
Function · 0.85
Tested by
no test coverage detected