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

Method text_normalize

Lib/test/test_ast/test_ast.py:3424–3425  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

3422
3423 @staticmethod
3424 def text_normalize(string):
3425 return textwrap.dedent(string).strip()
3426
3427 def set_source(self, content):
3428 Path(self.filename).write_text(self.text_normalize(content))

Callers 2

set_sourceMethod · 0.95
check_outputMethod · 0.95

Calls 2

stripMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected