MCPcopy
hub / github.com/borgbackup/borg / __str__

Method __str__

src/borg/archive.py:641–656  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

639 return info
640
641 def __str__(self):
642 return """\
643Repository: {location}
644Archive name: {0.name}
645Archive fingerprint: {0.fpr}
646Time (nominal): {time}
647Time (start): {start}
648Time (end): {end}
649Duration: {0.duration}
650""".format(
651 self,
652 time=OutputTimestamp(self.timestamp),
653 start=OutputTimestamp(self.start),
654 end=OutputTimestamp(self.end),
655 location=self.repository._location.canonical_path(),
656 )
657
658 def __repr__(self):
659 return "Archive(%r)" % self.name

Callers

nothing calls this directly

Calls 3

OutputTimestampClass · 0.85
formatMethod · 0.45
canonical_pathMethod · 0.45

Tested by

no test coverage detected