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

Method text_normalize

Lib/test/test_dis.py:2537–2543  ·  view source on GitHub ↗

Dedent *string* and strip it from its surrounding whitespaces. This method is used by the other utility functions so that any string to write or to match against can be freely indented.

(string)

Source from the content-addressed store, hash-verified

2535
2536 @staticmethod
2537 def text_normalize(string):
2538 """Dedent *string* and strip it from its surrounding whitespaces.
2539
2540 This method is used by the other utility functions so that any
2541 string to write or to match against can be freely indented.
2542 """
2543 return textwrap.dedent(string).strip()
2544
2545 def set_source(self, content):
2546 with open(self.filename, 'w') as fp:

Callers 3

set_sourceMethod · 0.95
invoke_disMethod · 0.95
check_outputMethod · 0.95

Calls 2

stripMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected