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

Method get_text_file_contents

Lib/test/test_venv.py:108–111  ·  view source on GitHub ↗
(self, *args, encoding='utf-8')

Source from the content-addressed store, hash-verified

106 return os.path.join(self.env_dir, *args)
107
108 def get_text_file_contents(self, *args, encoding='utf-8'):
109 with open(self.get_env_file(*args), 'r', encoding=encoding) as f:
110 result = f.read()
111 return result
112
113class BasicTest(BaseTest):
114 """Test venv module functionality."""

Calls 3

get_env_fileMethod · 0.95
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected