e93af7dafd
This simplifies a duplicated iteration pattern in the calling code. It also frees the first-node function to raise an Error (which the iterator now catches) if it finds no node, where it used to return False (instead of a node, so other code using it would raise confusing errors from trying to use False as a node, where now it'll get a clear Error about a missing node). There were also no callers passing an empty name, so the test for matching nodes (here moved to its own short function) didn't need to handle that as a special case. Change-Id: Ife6cad8943cf5dc2c6ed68429d4a217cb9bea446 Reviewed-by: Lars Knoll <lars.knoll@qt.io> |
||
---|---|---|
.. | ||
testlocales | ||
cldr2qlocalexml.py | ||
cldr2qtimezone.py | ||
dateconverter.py | ||
enumdata.py | ||
formattags.txt | ||
localexml.py | ||
qlocalexml2cpp.py | ||
README | ||
xpathlite.py |
local_database is used to generate qlocale data from the Common Locale Data Repository (The database for localized names (like date formats, country names etc)).