Use common name as country name

This commit is contained in:
Kovid Goyal 2023-07-13 11:02:17 +05:30
parent 12b2de5d06
commit 98343d3720
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -923,7 +923,7 @@ class ISO3166(ISO639): # {{{
if two:
two = unicode_type(two)
codes.add(two)
name_map[two] = x.get('name')
name_map[two] = x.get('common_name') or x.get('name')
if name_map[two]:
name_map[two] = unicode_type(name_map[two])
three = x.get('alpha_3')