def path_complete(text, state):
    if text in '~':
        if text == '~':
            text += '/'
        text = os.path.expanduser(text)
    return (glob.glob(text+'*')+[None])[state]
dataset/ETHPy150Open sodastsai/taskr/taskr/terminal.py/path_complete/swapped operands of `in`