40
40
REGION_BLACKLIST_TAG = "blacklist-iso3166::"
43
45
def get_region_name(countrycode):
44
46
""" return translated region name from countrycode using iso3166 """
47
50
for iso in ["iso_3166", "iso_3166_2"]:
48
51
path = os.path.join("/usr/share/xml/iso-codes/", iso + ".xml")
51
54
xpath = ".//%s_entry[@alpha_2_code='%s']" % (iso, countrycode)