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 2015/06/14 12:52:17 UTC

[06/21] libcloud git commit: Broke apart string in warnings.warn to pass flake8 in build test

Broke apart string in warnings.warn to pass flake8 in build test

Signed-off-by: Tomaz Muraus <to...@tomaz.me>


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

Branch: refs/heads/trunk
Commit: c7f00b437dabc239893db4b6c2d137c20096a74c
Parents: 003e0f6
Author: Javier Castillo II <j....@gmail.com>
Authored: Wed Apr 15 22:25:07 2015 +0000
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sun Jun 14 18:05:58 2015 +0800

----------------------------------------------------------------------
 libcloud/compute/drivers/digitalocean.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c7f00b43/libcloud/compute/drivers/digitalocean.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/digitalocean.py b/libcloud/compute/drivers/digitalocean.py
index 9176be9..46355fb 100644
--- a/libcloud/compute/drivers/digitalocean.py
+++ b/libcloud/compute/drivers/digitalocean.py
@@ -164,7 +164,8 @@ class DigitalOcean_v1_NodeDriver(DigitalOcean_v1_BaseDriver,
         :return: Available SSH keys.
         :rtype: ``list`` of :class:`SSHKey`
         """
-        warnings.warn("This method has been deprecated in favor of the list_key_pairs method")
+        warnings.warn("This method has been deprecated in "
+                      "favor of the list_key_pairs method")
 
         data = self.connection.request('/v1/ssh_keys').object['ssh_keys']
         return list(map(self._to_ssh_key, data))
@@ -211,7 +212,8 @@ class DigitalOcean_v1_NodeDriver(DigitalOcean_v1_BaseDriver,
         :param      name: Valid public key string (required)
         :type       name: ``str``
         """
-        warnings.warn("This method has been deprecated in favor of the create_key_pair method")
+        warnings.warn("This method has been deprecated in "
+                      "favor of the create_key_pair method")
 
         params = {'name': name, 'ssh_pub_key': ssh_key_pub}
         data = self.connection.request('/v1/ssh_keys/new/', method='GET',
@@ -237,7 +239,9 @@ class DigitalOcean_v1_NodeDriver(DigitalOcean_v1_BaseDriver,
         :param      key_id: SSH key id (required)
         :type       key_id: ``str``
         """
-        warnings.warn("This method has been deprecated in favor of the delete_key_pair method")
+        warnings.warn(
+            "This method has been deprecated in "
+            "favor of the delete_key_pair method")
 
         res = self.connection.request('/v1/ssh_keys/%s/destroy/' % (key_id))
         return res.status == httplib.OK