Skip to content

Commit

Permalink
locale_database: Sort lists of unused tags before printing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
eugmes committed Jul 6, 2021
1 parent 0b2646c commit 1887c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/locale_database/qlocalexml.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def close(self, grumble):
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:
Expand Down

0 comments on commit 1887c4e

Please sign in to comment.