]> git.ipfire.org Git - thirdparty/babel.git/commit
localedata: Check inheritance exceptions first 180/head
authorIsaac Jurado <diptongo@gmail.com>
Wed, 5 Nov 2014 16:15:08 +0000 (17:15 +0100)
committerIsaac Jurado <diptongo@gmail.com>
Wed, 5 Aug 2015 14:43:55 +0000 (16:43 +0200)
commit3ef0d6daaff4e9e2b60706e27034c9043b725483
tree70e62c455d854a71f0b421bd0b6d1174cba6144a
parent504aafe5395061c6a2c9fbbb92bc6646a379633f
localedata: Check inheritance exceptions first

When deriving the parent locale from the given name, look first in the
inheritance exception list.  This will cover cases like "es_MX", which
parent is "es_419" and not "es".

Fixes https://github.com/mitsuhiko/babel/issues/97
babel/localedata/__init__.py
babel/numbers.py
tests/test_numbers.py