Update screen_utils.py

This commit is contained in:
chrys87 2018-05-30 13:12:41 +02:00 committed by GitHub
parent d85e21224b
commit c79cf97d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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