"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "source/python/icutools/databuilder/filtration.py" between
icu4c-67rc-src.tgz and icu4c-67_1-src.tgz

About: ICU (International Components for Unicode) is a set of C/C++ and Java libraries providing Unicode and Globalization support for software applications on a wide variety of platforms.

filtration.py  (icu4c-67rc-src.tgz):filtration.py  (icu4c-67_1-src.tgz)
skipping to change at line 211 skipping to change at line 211
"""Gets the parent locale in the given tree, according to dependency dat a.""" """Gets the parent locale in the given tree, according to dependency dat a."""
dependency_data = self.dependency_data_by_tree[tree] dependency_data = self.dependency_data_by_tree[tree]
if "parents" in dependency_data and locale in dependency_data["parents"] : if "parents" in dependency_data and locale in dependency_data["parents"] :
return dependency_data["parents"][locale] return dependency_data["parents"][locale]
if "aliases" in dependency_data and locale in dependency_data["aliases"] : if "aliases" in dependency_data and locale in dependency_data["aliases"] :
return dependency_data["aliases"][locale] return dependency_data["aliases"][locale]
if LANGUAGE_ONLY_REGEX.match(locale): if LANGUAGE_ONLY_REGEX.match(locale):
return "root" return "root"
i = locale.rfind("_") i = locale.rfind("_")
if i < 0: if i < 0:
assert locale == "root" assert locale == "root", "Invalid locale: %s/%s" % (tree, locale)
return None return None
return locale[:i] return locale[:i]
def _locales_required(self, tree): def _locales_required(self, tree):
"""Returns a generator of all required locales in the given tree.""" """Returns a generator of all required locales in the given tree."""
for locale in self.locales_requested: for locale in self.locales_requested:
while locale is not None: while locale is not None:
yield locale yield locale
locale = self._get_parent_locale(locale, tree) locale = self._get_parent_locale(locale, tree)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)