forked from qt-creator/qt-creator
Tests: Swap order of findUnusedObjects' output to ease sorting
Change-Id: I477ae2f6d5c57de158d1408330a76cf4e4ebdae9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 The Qt Company Ltd.
|
# Copyright (C) 2019 The Qt Company Ltd.
|
||||||
# Contact: https://www.qt.io/licensing/
|
# Contact: https://www.qt.io/licensing/
|
||||||
#
|
#
|
||||||
# This file is part of Qt Creator.
|
# This file is part of Qt Creator.
|
||||||
@@ -147,10 +147,9 @@ def printResult():
|
|||||||
print "%s" % obj
|
print "%s" % obj
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
length = max(map(len, useCounts.keys()))
|
outFormat = "%3d %s"
|
||||||
outFormat = "%%%ds %%3d" % length
|
|
||||||
for obj,useCount in useCounts.iteritems():
|
for obj,useCount in useCounts.iteritems():
|
||||||
print outFormat % (obj, useCount)
|
print outFormat % (useCount, obj)
|
||||||
print
|
print
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user