diff options
author | Jonas Borgström <jonas@edgewall.org> | 2007-05-31 19:52:57 +0000 |
---|---|---|
committer | Jonas Borgström <jonas@edgewall.org> | 2007-05-31 19:52:57 +0000 |
commit | b7242d3a3897da3c43c538de7e33ce0f6a4e67a9 (patch) | |
tree | be56796c376266b47c7068361b84c792238e6abf /scripts | |
parent | 69e7ba46dc19d1fe8f3ef7f50bb5d9989a40f379 (diff) | |
download | babel-b7242d3a3897da3c43c538de7e33ce0f6a4e67a9.tar.gz |
Implemented babel.numbers.format_percent
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/import_cldr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index e7d65e8..e88edfd 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -269,7 +269,7 @@ def main(): for elem in tree.findall('//percentFormats/percentFormatLength'): if 'draft' in elem.attrib and elem.attrib.get('type') in percent_formats: continue - percent_formats[elem.attrib.get('type')] = unicode(elem.findtext('percentFormat/pattern')) + percent_formats[elem.attrib.get('type')] = numbers.parse_pattern(unicode(elem.findtext('percentFormat/pattern'))) currencies = data.setdefault('currencies', {}) for elem in tree.findall('//currencies/currency'): |