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 2013/08/23 00:01:15 UTC

git commit: Fix Python 2.5 compatibility issue.

Updated Branches:
  refs/heads/trunk 12abd62e9 -> db36293ca


Fix Python 2.5 compatibility issue.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/db36293c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/db36293c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/db36293c

Branch: refs/heads/trunk
Commit: db36293caad07b2a909085e6193681635d1ff35d
Parents: 12abd62
Author: Tomaz Muraus <to...@apache.org>
Authored: Fri Aug 23 00:01:01 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Aug 23 00:01:01 2013 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/cloudstack.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/db36293c/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py b/libcloud/compute/drivers/cloudstack.py
index 0726501..80a63e1 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -13,14 +13,16 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+from __future__ import with_statement
+
+import os
+
 from libcloud.compute.providers import Provider
 from libcloud.common.cloudstack import CloudStackDriverMixIn
 from libcloud.compute.base import Node, NodeDriver, NodeImage, NodeLocation,\
     NodeSize, StorageVolume
 from libcloud.compute.types import NodeState, LibcloudError
 
-import os
-
 class CloudStackNode(Node):
     "Subclass of Node so we can expose our extension methods."