Permalink
Browse files

Make cloudfiles tests pass with py3k.

git-svn-id: https://svn.apache.org/repos/asf/libcloud/trunk@1325713 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent c1ae623 commit f046dbc078bcf01437b9bbd9cab5bb97dd354663 @novel novel committed Apr 13, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 libcloud/storage/drivers/cloudfiles.py
View
5 libcloud/storage/drivers/cloudfiles.py
@@ -723,6 +723,8 @@ def next(self):
end_block=end_block,
chunk_size=8192)
+ def __next__(self):
+ return self.next()
class ChunkStreamReader(object):
def __init__(self, file_path, start_block, end_block, chunk_size):
@@ -752,3 +754,6 @@ def next(self):
block = self.fd.read(block_size)
self.bytes_read += block_size
return block
+
+ def __next__(self):
+ return self.next()

0 comments on commit f046dbc

Please sign in to comment.