Update screen_utils.py
This commit is contained in:
1 parent
d85e21224b
commit
c79cf97d2b
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user