Skip to content

Commit

Permalink
maybe fix accidental py3.12 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBuchanan314 committed Feb 16, 2024
1 parent 4ec9b59 commit 6965746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atmst/mst/node_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def pretty(self, node_cid: Optional[CID]) -> str:
if node_cid is None:
return "<empty>"
node = self.get_node(node_cid)
res = f"MSTNode<cid={node.cid.encode("base32")}>(\n{indent(self.pretty(node.subtrees[0]))},\n"
res = f"MSTNode<cid={node.cid.encode('base32')}>(\n{indent(self.pretty(node.subtrees[0]))},\n"
for k, v, t in zip(node.keys, node.vals, node.subtrees[1:]):
res += f" {k!r} ({MSTNode.key_height(k)}) -> {v.encode("base32")},\n"
res += f" {k!r} ({MSTNode.key_height(k)}) -> {v.encode('base32')},\n"
res += indent(self.pretty(t)) + ",\n"
res += ")"
return res

0 comments on commit 6965746

Please sign in to comment.