Skip to contentSkip to conversation

uievent: Fix import warning for python 3.10

PATCH New Richard Purdie 1 participant 1 message Mar 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uievent: Fix import warning for python 3.10

---
 lib/bb/ui/uievent.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/ui/uievent.py +1 -1
index e19c770bc9..d595f172ac 100644
@@ -44,7 +44,7 @@ class BBUIEventQueue:
         for count_tries in range(5):
             ret = self.BBServer.registerEventHandler(self.host, self.port)
 
-            if isinstance(ret, collections.Iterable):
+            if isinstance(ret, collections.abc.Iterable):
                 self.EventHandle, error = ret
             else:
                 self.EventHandle = ret
Signature · 1 line
2.32.0