def _split(self, text):
if isinstance(text, _unicode):<EOL><INDENT>if self.break_on_hyphens:<EOL><INDENT>pat = self.wordsep_re_uni<EOL><DEDENT>else:<EOL><INDENT>pat = self.wordsep_simple_re_uni<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.break_on_hyphens:<EOL><INDENT>pat = self.wordsep_re<EOL><DEDENT>else:<EOL><INDENT>pat = self.wordsep_simple_re<EOL><DEDENT><DEDENT>chunks = pat.split(text)<EOL>chunks = [x for x in chunks if x is not None]<EOL>return chunks<EOL>
_split(text : string) -> [string]

        Split the text to wrap into indivisible chunks.  Chunks are
        not quite the same as words; see _wrap_chunks() for full
        details.  As an example, the text
          Look, goof-ball -- use the -b option!
        breaks into the following chunks:
          'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ',
          'use', ' ', 'the', ' ', '-b', ' ', 'option!'
        if break_on_hyphens is True, or in:
          'Look,', ' ', 'goof-ball', ' ', '--', ' ',
          'use', ' ', 'the', ' ', '-b', ' ', option!'
        otherwise.