Skip to content

Commit 0ad8bdc

Browse files
committed
Merge branch 'python-3.6/support' of https://github.com/lighthouse-web3/lighthouse-python-sdk into python-3.6/support
2 parents a9d49b6 + 3848a29 commit 0ad8bdc

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/lighthouseweb3/__init__.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def downloadBlob(dist: io.BufferedWriter, cid: str, chunk_size=1024*1024*10):
4747
:param dist: BufferedWriter, destination to write the downloaded data
4848
:param cid: str, Content Identifier for the data to be downloaded
4949
:param chunk_size: int, size of chunks in which the file will be downloaded (default: 10MB)
50-
:param useCidAsTag: bool, flag to use CID as a tag (default: False)
5150
:return: t.Upload, the download result
5251
"""
5352
if not (hasattr(dist, 'read') and hasattr(dist, 'close')):
@@ -56,22 +55,7 @@ def downloadBlob(dist: io.BufferedWriter, cid: str, chunk_size=1024*1024*10):
5655
return _download.download_file_into_writable(cid, dist, chunk_size)
5756
except Exception as e:
5857
raise e
59-
60-
@staticmethod
61-
def downloadBlob(dist: io.BufferedWriter, cid: str, chunk_size=1024*1024*10):
62-
"""
63-
Download Blob a file or directory to the Lighthouse.
64-
65-
:param source: str, path to file or directory
66-
:return: t.Upload, the upload result
67-
"""
68-
if not (hasattr(dist, 'read') and hasattr(dist, 'close')):
69-
raise TypeError("source must have 'read' and 'close' methods")
70-
try:
71-
return _download.download_file_into_writable(cid, dist, chunk_size)
72-
except Exception as e:
73-
raise e
74-
58+
7559
@staticmethod
7660
def getDealStatus(cid: str):
7761
"""

0 commit comments

Comments
 (0)