Skip to content

Commit 11a35bf

Browse files
fix(python): update main.py, content_bytes() did not exist in Entry class. (#219)
Update main.py, content_bytes() did not exist in Entry class In line 63, content_bytes() did not exist in Entry class. I just took line 118 from doc_test.py.
1 parent 928f690 commit 11a35bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def main():
6060
# get key, hash, and content for each entry
6161
key = entry.key()
6262
hash = entry.content_hash()
63-
content = await entry.content_bytes(doc)
63+
content = await node.blobs().read_to_bytes(entry.content_hash())
6464
print("{} : {} (hash: {})".format(key.decode("utf8"), content.decode("utf8"), hash))
6565

6666
input("Press Enter to exit...")

0 commit comments

Comments
 (0)