document the new parameter

This commit is contained in:
Jean-Paul Calderone 2021-01-25 08:21:39 -05:00
parent 9c91261fa6
commit 5a0c913f58

View File

@ -949,6 +949,10 @@ class EncryptAnUploadable(object):
CHUNKSIZE = 50*1024
def __init__(self, original, log_parent=None, progress=None, chunk_size=None):
"""
:param chunk_size: The number of bytes to read from the uploadable at a
time, or None for some default.
"""
precondition(original.default_params_set,
"set_default_encoding_parameters not called on %r before wrapping with EncryptAnUploadable" % (original,))
self.original = IUploadable(original)