def load_states():
from pkg_resources import resource_stream<EOL>with resource_stream(__name__, '<STR_LIT>') as pklfile:<EOL><INDENT>for s in pickle.load(pklfile):<EOL><INDENT>state = State(**s)  <EOL>if state.is_obsolete:<EOL><INDENT>OBSOLETE.append(state)<EOL><DEDENT>elif state.is_territory:<EOL><INDENT>TERRITORIES.append(state)<EOL><DEDENT>else:<EOL><INDENT>STATES.append(state)<EOL>if state.is_contiguous:<EOL><INDENT>STATES_CONTIGUOUS.append(state)<EOL><DEDENT>if state.is_continental:<EOL><INDENT>STATES_CONTINENTAL.append(state)<EOL><DEDENT><DEDENT>STATES_AND_TERRITORIES.append(state)<EOL>globals()[state.abbr] = state<EOL><DEDENT><DEDENT>
Load state data from pickle file distributed with this package.

        Creates lists of states, territories, and combined states and
        territories. Also adds state abbreviation attribute access
        to the package: us.states.MD