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