Repository: libcloud Updated Branches: refs/heads/trunk d04d9c026 -> 408b5c565
Fix read_in_chunks on Python 3.7 According to https://www.python.org/dev/peps/pep-0479/#id41, this will stop working in Python 3.7: fix it now. Closes #1160 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/408b5c56 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/408b5c56 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/408b5c56 Branch: refs/heads/trunk Commit: 408b5c565cfee3cc271fd407ce3004111a073e4e Parents: d04d9c0 Author: Quentin Pradet <quent...@apache.org> Authored: Sun Jan 7 20:38:24 2018 +0400 Committer: Quentin Pradet <quent...@apache.org> Committed: Thu Jan 18 15:01:18 2018 +0400 ---------------------------------------------------------------------- libcloud/utils/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/408b5c56/libcloud/utils/files.py ---------------------------------------------------------------------- diff --git a/libcloud/utils/files.py b/libcloud/utils/files.py index ca109f7..ef03c85 100644 --- a/libcloud/utils/files.py +++ b/libcloud/utils/files.py @@ -83,7 +83,7 @@ def read_in_chunks(iterator, chunk_size=None, fill_size=False, if empty and yield_empty: yield b('') - raise StopIteration + return if fill_size: if empty or len(data) >= chunk_size: