forked from qt-creator/qt-creator
Squish: Fix findUnusedObjects for Python3
Change-Id: I4d092c5f4be682116f3313a72e17e5b1056e6866 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (C) 2019 The Qt Company Ltd.
|
# Copyright (C) 2022 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.
|
||||||
@@ -189,7 +189,7 @@ def printResult():
|
|||||||
def deleteRemovable():
|
def deleteRemovable():
|
||||||
global useCounts, objMap
|
global useCounts, objMap
|
||||||
|
|
||||||
deletable = filter(lambda x: useCounts[x] == 0, useCounts)
|
deletable = list(filter(lambda x: useCounts[x] == 0, useCounts))
|
||||||
if len(deletable) == 0:
|
if len(deletable) == 0:
|
||||||
print("Nothing to delete - leaving objects.map untouched")
|
print("Nothing to delete - leaving objects.map untouched")
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user