コード例 #1
0
def check():  # returns False if there is a problem initializing the state
    import termios
    try:
        _get_reader()
    except termios.error:
        return False
    return True
コード例 #2
0
ファイル: simple_interact.py プロジェクト: enyst/plexnet
def check():     # returns False if there is a problem initializing the state
    import termios
    try:
        _get_reader()
    except termios.error:
        return False
    return True
コード例 #3
0
ファイル: simple_interact.py プロジェクト: stefanor/pyrepl
def check():  # returns False if there is a problem initializing the state
    try:
        _get_reader()
    except _error:
        return False
    return True
コード例 #4
0
ファイル: simple_interact.py プロジェクト: mozillazg/pypy
def check():     # returns False if there is a problem initializing the state
    try:
        _get_reader()
    except _error:
        return False
    return True