def get_settings_priority(priority):
 if isinstance(priority, six.string_types):
  return SETTINGS_PRIORITIES[priority]
 else:
  return priority

def get_settings_priority ( priority ) : if isinstance ( priority , six . string_types ) : return SETTINGS_PRIORITIES [ priority ] else : return priority
small helper function that looks up a given string priority in the :attr:~scrapy .