3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

auto-t: iwd.py: make wait() a static method

This allows it to be used without initializing an IWD class:

IWD.wait(1)
This commit is contained in:
James Prestwood 2021-10-07 13:49:52 -07:00 committed by Denis Kenzior
parent 63b0778c99
commit 2e882946f8

View File

@ -1133,7 +1133,8 @@ class IWD(AsyncOpAbstract):
' condition was not met in '\ ' condition was not met in '\
+ str(max_wait) + ' sec')) + str(max_wait) + ' sec'))
def wait(self, time): @staticmethod
def wait(time):
ctx.non_block_wait(lambda : False, time, exception=False) ctx.non_block_wait(lambda : False, time, exception=False)
@staticmethod @staticmethod