Exemplo n.º 1
0
 def get_spanning_pieces(self, start_byte=None):
     # gets all the pieces that contain a part of this file
     pieces = Piece.get_spanning(self.torrent, start_byte or self.start_byte, self.end_byte)
     return pieces
Exemplo n.º 2
0
 def get_spanning_pieces(self, start_byte=None):
     # gets all the pieces that contain a part of this file
     pieces = Piece.get_spanning(self.torrent, start_byte
                                 or self.start_byte, self.end_byte)
     return pieces