summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2021-07-06 09:44:35 +0200
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2021-07-06 15:17:15 +0200
commit1887c4ecc1426b1b32ace4b74503b469a2da9137 (patch)
treecd3ba384116d41f250c0a2f4cda4e6a753fb5738 /util
parent0b2646c495d0b9052711f3790943e5354eb10407 (diff)
locale_database: Sort lists of unused tags before printing
This way the output is easier to compare between versions. Task-number: QTBUG-83488 Pick-to: 6.2 Change-Id: If4053c574c4ad200a179b06276bd889f2cb9e1c6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'util')
-rw-r--r--util/locale_database/qlocalexml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/locale_database/qlocalexml.py b/util/locale_database/qlocalexml.py
index 195812359b..630794735f 100644
--- a/util/locale_database/qlocalexml.py
+++ b/util/locale_database/qlocalexml.py
@@ -384,7 +384,7 @@ class QLocaleXmlWriter (object):
grumble('Some enum members are unused, corresponding to these tags:\n')
import textwrap
def kvetch(kind, seq, g = grumble, w = textwrap.wrap):
- g('\n\t'.join(w(' {}: '.format(kind) + ', '.join(seq), width=80)) + '\n')
+ g('\n\t'.join(w(' {}: '.format(kind) + ', '.join(sorted(seq)), width=80)) + '\n')
if self.__languages:
kvetch('Languages', self.__languages)
if self.__scripts: