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

Method text_normalize

Lib/test/test_pickle.py:764–770  ·  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

762
763 @staticmethod
764 def text_normalize(string):
765 """Dedent *string* and strip it from its surrounding whitespaces.
766
767 This method is used by the other utility functions so that any
768 string to write or to match against can be freely indented.
769 """
770 return dedent(string).strip()
771
772 def set_pickle_data(self, data):
773 with open(self.filename, 'wb') as f:

Callers 2

invoke_pickleMethod · 0.95
test_invocationMethod · 0.95

Calls 2

dedentFunction · 0.90
stripMethod · 0.45

Tested by

no test coverage detected