uievent: Fix import warning for python 3.10

Message ID 20220310152232.614543-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit bf1de5988698c797403ecd30edda99a76e9c02dd
Headers show
Series uievent: Fix import warning for python 3.10 | expand

Commit Message

Richard Purdie March 10, 2022, 3:22 p.m. UTC
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/ui/uievent.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/bb/ui/uievent.py b/lib/bb/ui/uievent.py
index e19c770bc9..d595f172ac 100644
--- a/lib/bb/ui/uievent.py
+++ b/lib/bb/ui/uievent.py
@@ -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