#NEWLINE# def _split( self , text ) : #NEWLINE# #INDENT# "_split(text : string) -> [string]\n\n        Split the text to wrap into indivisible chunks.  Chunks are\n        not quite the same as words; see _wrap_chunks() for full\n        details.  As an example, the text\n          Look, goof-ball -- use the -b option!\n        breaks into the following chunks:\n          'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ',\n          'use', ' ', 'the', ' ', '-b', ' ', 'option!'\n        if break_on_hyphens is True, or in:\n          'Look,', ' ', 'goof-ball', ' ', '--', ' ',\n          'use', ' ', 'the', ' ', '-b', ' ', option!'\n        otherwise.\n        " #NEWLINE# if ( self . break_on_hyphens is True ) : #NEWLINE# #INDENT# chunks = self . wordsep_re . split ( text ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# chunks = self . wordsep_simple_re . split ( text ) #NEWLINE# #UNINDENT# chunks = [ c for c in chunks if c ] #NEWLINE# return self