You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2012/12/27 07:35:03 UTC

svn commit: r1426129 - /libcloud/trunk/libcloud/storage/drivers/s3.py

Author: tomaz
Date: Thu Dec 27 06:35:03 2012
New Revision: 1426129

URL: http://svn.apache.org/viewvc?rev=1426129&view=rev
Log:
Fix a regression introduced in multipart upload change which caused some tests
to fail under Python 3.2.

Modified:
    libcloud/trunk/libcloud/storage/drivers/s3.py

Modified: libcloud/trunk/libcloud/storage/drivers/s3.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/storage/drivers/s3.py?rev=1426129&r1=1426128&r2=1426129&view=diff
==============================================================================
--- libcloud/trunk/libcloud/storage/drivers/s3.py (original)
+++ libcloud/trunk/libcloud/storage/drivers/s3.py Thu Dec 27 06:35:03 2012
@@ -499,7 +499,7 @@ class S3StorageDriver(StorageDriver):
 
             chunk_hash = self._get_hash_function()
             chunk_hash.update(data)
-            chunk_hash = base64.b64encode(chunk_hash.digest())
+            chunk_hash = base64.b64encode(chunk_hash.digest()).decode('utf-8')
 
             # This provides an extra level of data check and is recommended
             # by amazon