

def outputSelection(lineObjs):
    filePath = stateFiles.getSelectionFilePath()
    indices = [l.index for l in lineObjs]
    file = open(filePath, 'wb')
    pickle.dump(indices, filePath)
    file.close()

dataset/ETHPy150Open facebook/PathPicker/src/output.py outputSelection/VarMisuse@45/59 `file`->`filePath`