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

Method open

library/python/runtime_py3/sitecustomize.py:174–184  ·  view source on GitHub ↗
(self, mode="r", *args, **kwargs)

Source from the content-addressed store, hash-verified

172 return iter(())
173
174 def open(self, mode="r", *args, **kwargs) -> typing.IO:
175 data = self.data
176 if data is None:
177 raise FileNotFoundError(self._resfs)
178
179 stream = io.BytesIO(data)
180
181 if "b" not in mode:
182 stream = io.TextIOWrapper(stream, *args, **kwargs)
183
184 return stream
185
186 @functools.cached_property
187 def data(self) -> bytes | None:

Callers 12

__init__Method · 0.45
__init__Method · 0.45
atomic_file_createFunction · 0.45
get_java_pathFunction · 0.45
get_build_java_dirFunction · 0.45
__init__Method · 0.45
get_out_streamFunction · 0.45
_get_command_output_fileFunction · 0.45
read_file_unicodeFunction · 0.45
MainMethod · 0.45
ListTestsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected