#NEWLINE# def shard_body_row( sbody ) : #NEWLINE# #INDENT# '\n    Return one row, advancing the iterators in sbody.\n\n    ** MODIFIES sbody by calling next() on its iterators **\n    ' #NEWLINE# row = [ ] #NEWLINE# for ( done_rows , content_iter , cview ) in sbody : #NEWLINE# #INDENT# if cview : #NEWLINE# #INDENT# row . extend ( content_iter . next ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( row and ( type ( row [ ( - 1 ) ] ) == int ) ) : #NEWLINE# #INDENT# row [ ( - 1 ) ] = ( row [ ( - 1 ) ] + cview [ 2 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# row . append ( cview [ 2 ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return row