From 1887c4ecc1426b1b32ace4b74503b469a2da9137 Mon Sep 17 00:00:00 2001 From: Ievgenii Meshcheriakov Date: Tue, 6 Jul 2021 09:44:35 +0200 Subject: [PATCH] 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 --- util/locale_database/qlocalexml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: