Updated Branches: refs/heads/trunk 11c9f00ef -> 26537d8db
Re-order docstrings. Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5b4e2c0b Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5b4e2c0b Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5b4e2c0b Branch: refs/heads/trunk Commit: 5b4e2c0b6128fb4c792eaf8ed0c390a538d84bf7 Parents: 11c9f00 Author: Tomaz Muraus <[email protected]> Authored: Mon Jan 6 14:45:40 2014 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Mon Jan 6 14:46:22 2014 +0100 ---------------------------------------------------------------------- libcloud/utils/files.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/5b4e2c0b/libcloud/utils/files.py ---------------------------------------------------------------------- diff --git a/libcloud/utils/files.py b/libcloud/utils/files.py index 19b2a3f..4d85c8b 100644 --- a/libcloud/utils/files.py +++ b/libcloud/utils/files.py @@ -37,16 +37,16 @@ def read_in_chunks(iterator, chunk_size=None, fill_size=False): """ Return a generator which yields data in chunks. - :type iterator: :class:`object` which implements iterator interface. - :param response: An object which implements an iterator interface + :param terator: An object which implements an iterator interface or a File like object with read method. + :type iterator: :class:`object` which implements iterator interface. - :type chunk_size: ``int`` :param chunk_size: Optional chunk size (defaults to CHUNK_SIZE) + :type chunk_size: ``int`` + :param fill_size: If True, make sure chunks are exactly chunk_size in + length (except for last chunk). :type fill_size: ``bool`` - :param fill_size: If True, make sure chunks are chunk_size in length - (except for last chunk). TODO: At some point in the future we could use byte arrays here if version >= Python 3. This should speed things up a bit and reduce memory usage.
