# Path: cities/conf.py
# CONTINENT_DATA = {
#     'AF': ('Africa', 6255146),
#     'AS': ('Asia', 6255147),
#     'EU': ('Europe', 6255148),
#     'NA': ('North America', 6255149),
#     'OC': ('Oceania', 6255151),
#     'SA': ('South America', 6255150),
#     'AN': ('Antarctica', 6255152),
# }


import sys
    from importlib import reload
        from imp import reload
from cities.conf import CONTINENT_DATA as DEFAULT_CONTINENT_DATA

try:  # Python 3.4+
except ImportError:
    try:  # Python 3.0 - 3.3
    except ImportError:
        # reload is a builtin in Python 2
        pass




def reload_continent_data(signal, sender, setting, value, enter):
    if setting != 'CITIES_CONTINENT_DATA':
        return

    if value is None:
        value = DEFAULT_CONTINENT_DATA

    # Force reload the conf value
    sys.modules['cities.conf'].CONTINENT_DATA = value
    sys.modules['cities.util'].CONTINENT_DATA = value


def reload_cities_settings(sender, setting, value, enter, **kwargs):
    if setting != 'CITIES_SKIP_CITIES_WITH_EMPTY_REGIONS':
        return


# Path: cities/conf.py
# CONTINENT_DATA = {
#     'AF': ('Africa', 6255146),
#     'AS': ('Asia', 6255147),
#     'EU': ('Europe', 6255148),
#     'NA': ('North America', 6255149),
#     'OC': ('Oceania', 6255151),
#     'SA': ('South America', 6255150),
#     'AN': ('Antarctica', 6255152),
# }


# Path: test_project/test_app/utils.py
import sys
    from importlib import reload
        from imp import reload
from cities.conf import CONTINENT_DATA as DEFAULT_CONTINENT_DATA


try:  # Python 3.4+
except ImportError:
    try:  # Python 3.0 - 3.3
    except ImportError:
        # reload is a builtin in Python 2
        pass




def reload_continent_data(signal, sender, setting, value, enter):
    if setting != 'CITIES_CONTINENT_DATA':
        return

    if value is None:
        value = DEFAULT_CONTINENT_DATA

    # Force reload the conf value
    sys.modules['cities.conf'].CONTINENT_DATA = value
    sys.modules['cities.util'].CONTINENT_DATA = value


def reload_cities_settings(sender, setting, value, enter, **kwargs):
    if setting != 'CITIES_SKIP_CITIES_WITH_EMPTY_REGIONS':
        return


    reload(sys.modules['cities.conf'])