From 5a48b6879540747b760d1732c8080c2777132710 Mon Sep 17 00:00:00 2001 From: Daniel Lidstrom Date: Thu, 17 Dec 2020 18:17:06 -0800 Subject: [PATCH] Bugfix --- pyqtgraph/widgets/TreeWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/widgets/TreeWidget.py b/pyqtgraph/widgets/TreeWidget.py index 8c55ae2f..4540915f 100644 --- a/pyqtgraph/widgets/TreeWidget.py +++ b/pyqtgraph/widgets/TreeWidget.py @@ -132,7 +132,7 @@ class TreeWidget(QtGui.QTreeWidget): def listAllItems(self, item=None): items = [] - if item != None: + if item is not None: items.append(item) else: item = self.invisibleRootItem()