Author: tomaz
Date: Tue Jun 5 07:02:08 2012
New Revision: 1346261
URL: http://svn.apache.org/viewvc?rev=1346261&view=rev
Log:
Style cleanup.
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=1346261&r1=1346260&r2=1346261&view=diff
==============================================================================
--- libcloud/trunk/libcloud/storage/drivers/cloudfiles.py (original)
+++ libcloud/trunk/libcloud/storage/drivers/cloudfiles.py Tue Jun 5 07:02:08
2012
@@ -286,10 +286,7 @@ class CloudFilesStorageDriver(StorageDri
headers=headers,
cdn_request=True)
- if response.status in [ httplib.CREATED, httplib.ACCEPTED ]:
- return True
-
- return False
+ return response.status in [ httplib.CREATED, httplib.ACCEPTED ]
def ex_enable_static_website(self, container, index_file='index.html'):
"""