diff --git a/atrcopy/utils.py b/atrcopy/utils.py index 264c170..04d1e94 100644 --- a/atrcopy/utils.py +++ b/atrcopy/utils.py @@ -280,7 +280,7 @@ class VTOC(BaseSectorList): self.parse_segments(segments) def __str__(self): - return "%s\n (%d free)" % ("\n".join(["track %02d: %s" % (i, line) for i, line in enumerate(str(self.sector_map[0:self.header.tracks_per_disk*self.header.sectors_per_track].reshape([self.header.tracks_per_disk,self.header.sectors_per_track])).splitlines())]), self.num_free_sectors) + return "%s\n (%d free)" % ("\n".join(["track %02d: %s" % (i, line) for i, line in enumerate(str(self.sector_map[self.header.starting_sector_label:(self.header.tracks_per_disk*self.header.sectors_per_track) + self.header.starting_sector_label].reshape([self.header.tracks_per_disk,self.header.sectors_per_track])).splitlines())]), self.num_free_sectors) @property def num_free_sectors(self):