def _munge_whitespace(self, text):
if self.expand_tabs:<EOL><INDENT>text = '<STR_LIT:U+0020>'.join(('<STR_LIT:U+0020>'.join(text.split('<STR_LIT:\n>'))).split('<STR_LIT:\t>'))<EOL><DEDENT>if self.replace_whitespace:<EOL><INDENT>text = '<STR_LIT:U+0020>'.join('<STR_LIT:U+0020>'.join(text.split('<STR_LIT:\n>')).split('<STR_LIT:\t>'))<EOL><DEDENT>return text<EOL>
_munge_whitespace(text : string) -> string

        Munge whitespace in text: expand tabs and convert all other
        whitespace characters to spaces.  Eg. " foo\\tbar\\n\\nbaz"
        becomes " foo    bar  baz".