#NEWLINE# def _skip_row( self , row ) : #NEWLINE# #INDENT# if ( ( skip . mapping [ 'election' ] == 'nv-2004-09-07-primary' ) or ( self . mapping [ 'election' ] == 'nv-2002-09-03-primary' ) ) : #NEWLINE# #INDENT# skip = ( row [ 'office' ] . split ( ' (' ) [ 0 ] . split ( ' DISTRICT' ) [ 0 ] not in self . target_offices ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# skip = ( row [ 'office' ] . split ( ',' ) [ 0 ] . strip ( ) . upper ( ) not in self . target_offices ) #NEWLINE# #UNINDENT# return skip