You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by rb...@apache.org on 2012/04/13 12:41:20 UTC
svn commit: r1325713 - /libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
Author: rbogorodskiy
Date: Fri Apr 13 10:41:20 2012
New Revision: 1325713
URL: http://svn.apache.org/viewvc?rev=1325713&view=rev
Log:
Make cloudfiles tests pass with py3k.
Modified:
libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
Modified: libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py?rev=1325713&r1=1325712&r2=1325713&view=diff
==============================================================================
--- libcloud/trunk/libcloud/storage/drivers/cloudfiles.py (original)
+++ libcloud/trunk/libcloud/storage/drivers/cloudfiles.py Fri Apr 13 10:41:20 2012
@@ -723,6 +723,8 @@ class FileChunkReader(object):
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 @@ class ChunkStreamReader(object):
block = self.fd.read(block_size)
self.bytes_read += block_size
return block
+
+ def __next__(self):
+ return self.next()