(priority)
Small helper function that looks up a given string priority in the
    :attr:`~scrapy.settings.SETTINGS_PRIORITIES` dictionary and returns its
    numerical value, or directly returns a given numerical priority.
Small helper function that looks up a given string priority in the
    :attr:`~scrapy.settings.SETTINGS_PRIORITIES` dictionary and returns its
    numerical value, or directly returns a given numerical priority.
Small helper function that looks up a given string priority in the : attr : ~scrapy . settings . SETTINGS_PRIORITIES dictionary and returns its numerical value or directly returns a given numerical priority .
def get_settings_priority(priority):
    """
    Small helper function that looks up a given string priority in the
    :attr:`~scrapy.settings.SETTINGS_PRIORITIES` dictionary and returns its
    numerical value, or directly returns a given numerical priority.
    """
    if isinstance(priority, str):
        return SETTINGS_PRIORITIES[priority]
    else:
        return priority
def get_settings_priority ( priority ) : if isinstance ( priority , str ) : return SETTINGS_PRIORITIES [ priority ] else : return priority