diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-19 17:18:28 +0100 |
---|---|---|
committer | Edward Welbourne <eddy@chaos.org.uk> | 2020-04-02 19:42:40 +0100 |
commit | c3dea1ffca7e46319daed5b44895c6e09f51f3ea (patch) | |
tree | 141da0f6c8cacc0d13459d06ff921594b763b954 /util/locale_database/qlocalexml.py | |
parent | 4d9f1a87de7a6e50e89f96836bc2f0cf6e229dda (diff) |
Move some shared code to a localetools module
The time-zone script was importing two functions from the locale data
generation script. Move them to a separate module, to which I'll
shortly add some more shared utilities. Cleaned up some imports in the
process.
Combined qlocalexml2cpp's and xpathlit's error classes into a new
Error class in the new module and made it a bit more like a proper
python error class.
Task-number: QTBUG-81344
Change-Id: Idbe0139ba9aaa2f823b8f7216dee1d2539c18b75
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'util/locale_database/qlocalexml.py')
-rw-r--r-- | util/locale_database/qlocalexml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/locale_database/qlocalexml.py b/util/locale_database/qlocalexml.py index 8289bd785a..0b962157d2 100644 --- a/util/locale_database/qlocalexml.py +++ b/util/locale_database/qlocalexml.py @@ -39,7 +39,7 @@ Support: from __future__ import print_function from xml.sax.saxutils import escape -from xpathlite import Error +from localetools import Error # Tools used by Locale: def camel(seq): |