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
1 changed files with 2 additions and 1 deletions

View File

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