mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
download_to_data: fix comment
This commit is contained in:
parent
db517e8edd
commit
04a9c51e3a
@ -33,7 +33,7 @@ class MemoryConsumer:
|
||||
|
||||
def download_to_data(n, offset=0, size=None, progress=None):
|
||||
"""
|
||||
:param on_progress: if set, a single-arg callable that receives total bytes downloaded
|
||||
:param progress: None or an IProgress implementer
|
||||
"""
|
||||
d = n.read(MemoryConsumer(progress=progress), offset, size)
|
||||
d.addCallback(lambda mc: "".join(mc.chunks))
|
||||
|
Loading…
x
Reference in New Issue
Block a user