MCPcopy Index your code
hub / github.com/python/cpython / read_text

Method read_text

Lib/importlib/metadata/__init__.py:380–381  ·  view source on GitHub ↗
(self, encoding: str = 'utf-8')

Source from the content-addressed store, hash-verified

378 dist: Distribution
379
380 def read_text(self, encoding: str = 'utf-8') -> str:
381 return self.locate().read_text(encoding=encoding)
382
383 def read_binary(self) -> bytes:
384 return self.locate().read_bytes()

Callers 2

read_textMethod · 0.45
_top_level_declaredFunction · 0.45

Calls 1

locateMethod · 0.95

Tested by

no test coverage detected