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

Method text_normalize

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

Source from the content-addressed store, hash-verified

3448
3449 @staticmethod
3450 def text_normalize(string):
3451 return textwrap.dedent(string).strip()
3452
3453 def set_source(self, content):
3454 Path(self.filename).write_text(self.text_normalize(content))

Callers 2

set_sourceMethod · 0.95
check_outputMethod · 0.95

Calls 2

dedentMethod · 0.80
stripMethod · 0.45

Tested by

no test coverage detected