def state_import(state_shp):
    if '2015' in state_shp or '2014' in state_shp or '2013' in state_shp or state_shp in '2012' or '2011' in state_shp:
        state_mapping = {
            'fips_code': 'STATEFP',
            'usps_code': 'STUSPS',
            'name': 'NAME',
            'area_description_code': 'LSAD',
            'feature_class_code': 'MTFCC',
            'functional_status': 'FUNCSTAT',
            'mpoly': 'POLYGON',
        }
    else:
        state_mapping = {
            'fips_code': 'STATEFP10',
            'usps_code': 'STUSPS10',
            'name': 'NAME10',
            'area_description_code': 'LSAD10',
            'feature_class_code': 'MTFCC10',
            'functional_status': 'FUNCSTAT10',
            'mpoly': 'POLYGON',
        }
    lm = LayerMapping(State, state_shp, state_mapping)
    lm.save(verbose=True)
dataset/ETHPy150Open adamfast/geodjango-tigerline/tigerline/management/commands/load_states.py/state_import/swapped operands of `in`