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

Method set_source

Lib/test/test_dis.py:2545–2547  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

2543 return textwrap.dedent(string).strip()
2544
2545 def set_source(self, content):
2546 with open(self.filename, 'w') as fp:
2547 fp.write(self.text_normalize(content))
2548
2549 def invoke_dis(self, *flags):
2550 output = io.StringIO()

Callers 2

check_outputMethod · 0.95
test_invocationMethod · 0.95

Calls 3

text_normalizeMethod · 0.95
openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected