#NEWLINE# def lines_removed( self , lines ) : #NEWLINE# #INDENT# top_lines = lines #NEWLINE# bottom_lines = [ ( line - 1 ) for line in lines if ( line > 1 ) ] #NEWLINE# dual_lines = [ ] #NEWLINE# for line in top_lines : #NEWLINE# #INDENT# if ( line in bottom_lines ) : #NEWLINE# #INDENT# dual_lines . append ( line ) #NEWLINE# #UNINDENT# #UNINDENT# for line in dual_lines : #NEWLINE# #INDENT# bottom_lines . remove ( line ) #NEWLINE# top_lines . remove ( line ) #NEWLINE# #UNINDENT# self . bind_icons ( 'deleted_top' , top_lines ) #NEWLINE# self . bind_icons ( 'deleted_bottom' , bottom_lines ) #NEWLINE# self . bind_icons ( 'deleted_dual' , dual_lines )