def add_country(self, country): country = chomp(country, lower=True) if is_country_code(country) and country not in self._countries: self._countries.append(country)
def country_code(code): return is_country_code(code)