Update screen_utils.py
This commit is contained in:
parent
d85e21224b
commit
c79cf97d2b
@ -40,11 +40,11 @@ def hasMore(fd, timetout=0.2):
|
||||
return (fd in r)
|
||||
def hasMoreWaht(fdList, timetout=0.2):
|
||||
if not isinstance(fdList, list):
|
||||
return [], False
|
||||
return []
|
||||
if fdList = []:
|
||||
return [], False
|
||||
return []
|
||||
r, _, _ = select.select(fdList, [], [], timetout)
|
||||
return r, (fd in r)
|
||||
return r
|
||||
def isValidShell(shell = ''):
|
||||
if not isinstance(shell, str):
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user