def find_torrent(info_hash, torrent_list):
 for t in torrent_list:
  if (t.info_hash == info_hash):
   return t
 return None

def find_torrent ( info_hash , torrent_list ) : for t in torrent_list : if ( t . info_hash == info_hash ) : return t return None
find torrent file in given list of torrent classes .