def __init__(self, name, data):
    super(TorrentFile, self).__init__(data)
    self.name = os.path.basename(name)
    self.info_hash = rtorrent.lib.torrentparser.TorrentParser(data)._calc_info_hash()
def __init__(self, name, data):
    super(TorrentFile, self).__init__(data)
    self.name = os.path.basename(name)
    self.info_hash = rtorrent.lib.torrentparser.TorrentParser(data)._calc_info_hash()