#NEWLINE# def _generate_county_filename( self , election ) : #NEWLINE# #INDENT# bits = [ election [ 'start_date' ] . replace ( '-' , '' ) , self . state ] #NEWLINE# if ( election [ 'special' ] == True ) : #NEWLINE# #INDENT# bits . extend ( [ 'special' ] ) #NEWLINE# #UNINDENT# bits . extend ( election [ 'race_type' ] . split ( '-' ) ) #NEWLINE# bits . extend ( [ 'county' ] ) #NEWLINE# filename = ( '__' . join ( bits ) + '.csv' ) #NEWLINE# return filename