MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_text_file_contents

Method get_text_file_contents

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

Source from the content-addressed store, hash-verified

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

Calls 3

get_env_fileMethod · 0.95
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected