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