From 75a8d41b91bdd3777942baa86688e58fcd64145a Mon Sep 17 00:00:00 2001 From: mattadev <49622404+mattadev@users.noreply.github.com> Date: Wed, 2 Jun 2021 12:39:09 -0700 Subject: [PATCH] Use equality operator to avoid startup warning (#1) --- app/hostmodels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hostmodels.py b/app/hostmodels.py index bb73970..5c02de0 100644 --- a/app/hostmodels.py +++ b/app/hostmodels.py @@ -30,7 +30,7 @@ def rowCount(self, parent): return len(self.__hosts) def columnCount(self, parent): - if not len(self.__hosts) is 0: + if len(self.__hosts) != 0: return len(self.__hosts[0]) return 0