<s> from wq . io import CsvNetIO <EOL> from collections import OrderedDict <EOL> class CountyIO ( CsvNetIO ) : <EOL> url = "<STR_LIT>" <EOL> counties = OrderedDict ( sorted ( [ <EOL> ( c . stateansi + c . countyansi , c ) <EOL> for c in CountyIO ( ) <EOL> ] ) ) <EOL> def state_counties ( state ) : <EOL> result = OrderedDict ( ) <EOL> for fips , county in counties . items ( ) : <EOL> if county . stateansi == state or county . state == state : <EOL> result [ fips ] = county <EOL> return result </s>
