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

Method set_source

Lib/test/test_ast/test_ast.py:3427–3428  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

3425 return textwrap.dedent(string).strip()
3426
3427 def set_source(self, content):
3428 Path(self.filename).write_text(self.text_normalize(content))
3429
3430 def invoke_ast(self, *flags):
3431 stderr = StringIO()

Callers 2

check_outputMethod · 0.95
test_invocationMethod · 0.95

Calls 3

text_normalizeMethod · 0.95
PathClass · 0.90
write_textMethod · 0.45

Tested by

no test coverage detected