Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_source
Method · 0.95
check_output
Method · 0.95
Calls
2
dedent
Method · 0.80
strip
Method · 0.45
Tested by
no test coverage detected