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)
| 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: |
no test coverage detected