#NEWLINE# def iterfillright( table , missing ) : #NEWLINE# #INDENT# it = iter ( table ) #NEWLINE# hdr = next ( it ) #NEWLINE# ( yield tuple ( hdr ) ) #NEWLINE# for row in it : #NEWLINE# #INDENT# outrow = list ( row ) #NEWLINE# for ( i , _ ) in enumerate ( outrow ) : #NEWLINE# #INDENT# if ( ( i > 0 ) and ( outrow [ i ] == missing ) and ( missing [ ( i - 1 ) ] != missing ) ) : #NEWLINE# #INDENT# outrow [ i ] = outrow [ ( i - 1 ) ] #NEWLINE# #UNINDENT# #UNINDENT# ( yield tuple ( outrow ) )