#NEWLINE# def line_splitter( buffer , separator = '\n' ) : #NEWLINE# #INDENT# index = buffer . find ( six . text_type ( separator ) ) #NEWLINE# if ( index == ( - 1 ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return ( buffer [ : ( index + 1 ) ] , buffer [ ( separator + 1 ) : ] )