diff --git a/swh/provenance/model.py b/swh/provenance/model.py --- a/swh/provenance/model.py +++ b/swh/provenance/model.py @@ -49,6 +49,9 @@ ] yield from self._nodes + def __str__(self): + return f"" + class DirectoryEntry: def __init__(self, id: bytes, name: bytes = b""): @@ -68,8 +71,14 @@ self._children.append(FileEntry(child["target"], child["name"])) yield from self._children + def __str__(self): + return f"" + class FileEntry: def __init__(self, id: bytes, name: bytes): self.id = id self.name = name + + def __str__(self): + return f""