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)
|
return (fd in r)
|
||||||
def hasMoreWaht(fdList, timetout=0.2):
|
def hasMoreWaht(fdList, timetout=0.2):
|
||||||
if not isinstance(fdList, list):
|
if not isinstance(fdList, list):
|
||||||
return [], False
|
return []
|
||||||
if fdList = []:
|
if fdList = []:
|
||||||
return [], False
|
return []
|
||||||
r, _, _ = select.select(fdList, [], [], timetout)
|
r, _, _ = select.select(fdList, [], [], timetout)
|
||||||
return r, (fd in r)
|
return r
|
||||||
def isValidShell(shell = ''):
|
def isValidShell(shell = ''):
|
||||||
if not isinstance(shell, str):
|
if not isinstance(shell, str):
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user