

def _instantiate_torrent_file(torrent, kwargs):
    kwargs['selected'] = (True if (kwargs['wanted'] == 1) else False)
    del kwargs['wanted']
    return TorrentFile(kwargs, **kwargs)

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py _instantiate_torrent_file/VarMisuse@41/53 `torrent`->`kwargs`