5b1c33cc78
Broke out the updating of a source file to a ZoneIdWriter helper class, which enables tidying away the temporary file if we fail. Collected up the rest of the script into a main() that's now called from a __name__ == '__main__' block. Rationalized the imports. Eliminated an inefficient lookup function by constructing a suitable dict() before entering the loop that needed it. Separated the "data you might need to update" tables from the code that does the work, to make it easier for those adding support for new zones to see what they're doing. Removed the spurious $Revision$ from the output and reworded the premable of the generated file. (It would seem CLDR no longer uses an RCS-based version-control system.) Generated output is otherwise unchanged. Task-number: QTBUG-81344 Change-Id: I7d9de8357ebcb599d154de9f862e25f7ade00390 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> |
||
---|---|---|
.. | ||
accessibilityinspector | ||
aglfn | ||
corelib/qurl-generateTLDs | ||
edid | ||
glgen | ||
gradientgen | ||
harfbuzz | ||
includemocs | ||
integrity | ||
lexgen | ||
locale_database | ||
plugintest | ||
qfloat16-tables | ||
unicode | ||
x86simdgen | ||
xkbdatagen |