[Pkg-isocodes-devel] [pkg-isocodes-Bugs][315796] XK country code for alpha_2 does not correctly return 'Kosovo'

pkg-isocodes-bugs at alioth.debian.org pkg-isocodes-bugs at alioth.debian.org
Sat Jul 22 19:00:18 UTC 2017


pkg-isocodes-Bugs item #315796, was opened at 2017-07-22 19:00 by Nathan Nye
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413077&aid=315796&group_id=30316

Status: Open
Priority: 3
Submitted By: Nathan Nye (nathann-guest)
Assigned to: Nobody (None)
Summary: XK country code for alpha_2 does not correctly return 'Kosovo' 
Part: General


Initial Comment:
Hi,

Thank you for your time and effort on this open source project. I use pycountry, which is a wrapper for pkg-isocodes. If XK could be correctly added as an alpha_2 code to pkg-isocodes, this library would function perfectly.

pycountry.countries.get(alpha_2="XK").name

Expected: Kosovo

Result: <type 'exceptions.KeyError'> 'XK'

Citations: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Decoding_table https://countrycode.org/kosovo https://geonames.wordpress.com/2010/03/08/xk-country-code-for-kosovo/

More information: https://bitbucket.org/flyingcircus/pycountry/issues/13382/xk-country-code-for-alpha2-does-not

Let me know if you need any more information.

Nathan

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413077&aid=315796&group_id=30316



More information about the Pkg-isocodes-devel mailing list