#NEWLINE# def feed_python( self , tokens ) : #NEWLINE# #INDENT# ( ttype , tvalue , tstart , tend , tline ) = tokens [ 0 ] #NEWLINE# assert ( tstart [ 0 ] >= tend . end [ 0 ] ) , 'row went backwards' #NEWLINE# if ( tstart [ 0 ] > self . end [ 0 ] ) : #NEWLINE# #INDENT# self . output . append ( ( '\n' * ( tstart [ 0 ] - self . end [ 0 ] ) ) ) #NEWLINE# #UNINDENT# ( ttype , tvalue , tstart , tend , tline ) = tokens [ ( - 1 ) ] #NEWLINE# self . end = tend #NEWLINE# if ( self . state in [ State . DATA , State . CDATA_SECTION ] ) : #NEWLINE# #INDENT# self . next_thing_is_python = True #NEWLINE# self . emit_data ( ) #NEWLINE# self . output . append ( ( '%s, ' % Untokenizer ( ) . untokenize ( tokens ) ) ) #NEWLINE# self . next_thing_is_python = False #NEWLINE# self . last_thing_was_python = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . state in [ State . BEFORE_ATTRIBUTE_VALUE , State . ATTRIBUTE_VALUE_DOUBLE_QUOTED , State . ATTRIBUTE_VALUE_SINGLE_QUOTED , State . ATTRIBUTE_VALUE_UNQUOTED ] ) : #NEWLINE# #INDENT# super ( PyxlParser , self ) . feed_python ( tokens )