From 9c9aa75ca38237bd0453d84780ba2bb12cb4b892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Mon, 9 May 2022 12:21:50 +0200 Subject: [PATCH] Squish: Fix findUnusedObjects for Python3 Change-Id: I4d092c5f4be682116f3313a72e17e5b1056e6866 Reviewed-by: Christian Stenger Reviewed-by: --- tests/system/tools/findUnusedObjects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system/tools/findUnusedObjects.py b/tests/system/tools/findUnusedObjects.py index 258674a4aa6..8bf044dba60 100755 --- a/tests/system/tools/findUnusedObjects.py +++ b/tests/system/tools/findUnusedObjects.py @@ -2,7 +2,7 @@ ############################################################################ # -# Copyright (C) 2019 The Qt Company Ltd. +# Copyright (C) 2022 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. @@ -189,7 +189,7 @@ def printResult(): def deleteRemovable(): global useCounts, objMap - deletable = filter(lambda x: useCounts[x] == 0, useCounts) + deletable = list(filter(lambda x: useCounts[x] == 0, useCounts)) if len(deletable) == 0: print("Nothing to delete - leaving objects.map untouched") return