MCPcopy Create free account
hub / github.com/catboost/catboost / file_bytes

Function file_bytes

library/python/runtime_py3/__res.py:104–110  ·  view source on GitHub ↗
(path, strip=False)

Source from the content-addressed store, hash-verified

102
103
104def file_bytes(path, strip=False):
105 # 'open' is not avaiable yet.
106 with FileIO(path, 'r') as f:
107 data = f.read()
108 if strip:
109 return data.strip()
110 return data
111
112
113def _guess_source_root():

Callers 6

_guess_source_rootFunction · 0.85
_guess_pycache_prefixFunction · 0.85
resfs_readFunction · 0.85
get_dataMethod · 0.85
get_sourceMethod · 0.85
get_codeMethod · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected