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

Method text_normalize

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

833
834 @staticmethod
835 def text_normalize(string):
836 """Dedent *string* and strip it from its surrounding whitespaces.
837
838 This method is used by the other utility functions so that any
839 string to write or to match against can be freely indented.
840 """
841 return dedent(string).strip()
842
843 def set_pickle_data(self, data):
844 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