

def _generate_precinct_filename(self, election, county):
    bits = [election['start_date'].replace('-', ''), self.state]
    if county['special']:
        bits.append('special')
    bits.extend([election['race_type'].replace('-', '_').lower(), county['name'].lower(), 'precinct'])
    filename = ('__'.join(bits) + '.xml')
    return filename

dataset/ETHPy150Open openelections/openelections-core/openelex/us/sc/datasource.py Datasource._generate_precinct_filename/VarMisuse@35/48 `election`->`county`