libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/4] git commit: Fix for PEP8's E265.
Date Sun, 30 Mar 2014 20:56:30 GMT
Fix for PEP8's E265.

pep8 1.5 introduced a new test (E265) to ensure there's at least one
space before block comment.

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


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

Branch: refs/heads/trunk
Commit: e66146fe11a05a3110dec13b6e956a6c3562aa70
Parents: ecd63e8
Author: Franck Cuny <franck.cuny@gmail.com>
Authored: Sun Mar 30 11:17:34 2014 -0700
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sun Mar 30 22:55:41 2014 +0200

----------------------------------------------------------------------
 docs/examples/compute/openstack/hpcloud.py |  4 +-
 libcloud/common/base.py                    |  6 +--
 libcloud/compute/drivers/abiquo.py         |  2 +-
 libcloud/compute/drivers/dreamhost.py      |  2 +-
 libcloud/compute/drivers/ecp.py            | 68 ++++++++++++-------------
 libcloud/compute/drivers/hostvirtual.py    |  2 +-
 libcloud/compute/drivers/nephoscale.py     | 16 +++---
 libcloud/compute/drivers/openstack.py      |  2 +-
 libcloud/compute/drivers/opsource.py       |  5 +-
 libcloud/compute/drivers/rimuhosting.py    |  2 +-
 libcloud/compute/drivers/softlayer.py      |  2 +-
 libcloud/loadbalancer/drivers/rackspace.py |  2 +-
 libcloud/storage/drivers/s3.py             |  4 +-
 libcloud/test/compute/test_gridspot.py     |  2 +-
 libcloud/test/compute/test_openstack.py    | 10 ++--
 libcloud/test/dns/test_route53.py          |  2 +-
 libcloud/test/test_connection.py           |  4 +-
 17 files changed, 68 insertions(+), 67 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/docs/examples/compute/openstack/hpcloud.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/openstack/hpcloud.py b/docs/examples/compute/openstack/hpcloud.py
index 0b226b5..cbfda3d 100644
--- a/docs/examples/compute/openstack/hpcloud.py
+++ b/docs/examples/compute/openstack/hpcloud.py
@@ -8,7 +8,7 @@ HPCLOUD_AUTH_URL_USEAST = \
 
 OpenStack = get_driver(Provider.OPENSTACK)
 
-#HP Cloud US West
+# HP Cloud US West
 driver = OpenStack('your_auth_username', 'your_auth_password',
                    ex_force_auth_version='2.0_password',
                    ex_force_auth_url=HPCLOUD_AUTH_URL_USWEST,
@@ -16,7 +16,7 @@ driver = OpenStack('your_auth_username', 'your_auth_password',
                    ex_force_service_region='region-a.geo-1',
                    ex_force_service_name='Compute')
 
-#HP Cloud US East
+# HP Cloud US East
 driver = OpenStack('your_auth_username', 'your_auth_password',
                    ex_force_auth_version='2.0_password',
                    ex_force_auth_url=HPCLOUD_AUTH_URL_USEAST,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/common/base.py
----------------------------------------------------------------------
diff --git a/libcloud/common/base.py b/libcloud/common/base.py
index 178c218..8537c07 100644
--- a/libcloud/common/base.py
+++ b/libcloud/common/base.py
@@ -259,7 +259,7 @@ class RawResponse(Response):
         return self._reason
 
 
-#TODO: Move this to a better location/package
+# TODO: Move this to a better location/package
 class LoggingConnection():
     """
     Debug class to log all HTTP(s) requests as they could be made
@@ -402,7 +402,7 @@ class Connection(object):
     """
     A Base Connection class to derive from.
     """
-    #conn_classes = (LoggingHTTPSConnection)
+    # conn_classes = (LoggingHTTPSConnection)
     conn_classes = (LibcloudHTTPConnection, LibcloudHTTPSConnection)
 
     responseCls = Response
@@ -523,7 +523,7 @@ class Connection(object):
         # which proxies to your endpoint, and lets you easily capture
         # connections in cleartext when you setup the proxy to do SSL
         # for you
-        #connection = self.conn_classes[False]("127.0.0.1", 8080)
+        # connection = self.conn_classes[False]("127.0.0.1", 8080)
 
         self.connection = connection
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/abiquo.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/abiquo.py b/libcloud/compute/drivers/abiquo.py
index b3e2d2e..398087b 100644
--- a/libcloud/compute/drivers/abiquo.py
+++ b/libcloud/compute/drivers/abiquo.py
@@ -573,7 +573,7 @@ class AbiquoNodeDriver(NodeDriver):
         repo_link = get_href(image_element, 'datacenterrepository')
         image = self._to_nodeimage(image_element, self, repo_link)
 
-        ## Fill the 'ips' data
+        # Fill the 'ips' data
         private_ips = []
         public_ips = []
         nics_element = self.connection.request(get_href(vm, 'nics')).object

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/dreamhost.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dreamhost.py b/libcloud/compute/drivers/dreamhost.py
index d0a2396..cba445c 100644
--- a/libcloud/compute/drivers/dreamhost.py
+++ b/libcloud/compute/drivers/dreamhost.py
@@ -116,7 +116,7 @@ class DreamhostConnection(ConnectionKey):
         """
         params['key'] = self.key
         params['format'] = self.format
-        #params['unique_id'] = generate_unique_id()
+        # params['unique_id'] = generate_unique_id()
         return params
 
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/ecp.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ecp.py b/libcloud/compute/drivers/ecp.py
index 021e7b0..79b57fa 100644
--- a/libcloud/compute/drivers/ecp.py
+++ b/libcloud/compute/drivers/ecp.py
@@ -38,7 +38,7 @@ from libcloud.compute.base import NodeImage, Node
 from libcloud.compute.types import Provider, NodeState, InvalidCredsError
 from libcloud.utils.networking import is_private_subnet
 
-#Defaults
+# Defaults
 API_HOST = ''
 API_PORT = (80, 443)
 
@@ -65,7 +65,7 @@ class ECPResponse(Response):
     def parse_error(self):
         return self.error
 
-    #Interpret the json responses - no error checking required
+    # Interpret the json responses - no error checking required
     def parse_body(self):
         return json.loads(self.body)
 
@@ -83,7 +83,7 @@ class ECPConnection(ConnectionUserAndKey):
     port = API_PORT
 
     def add_default_headers(self, headers):
-        #Authentication
+        # Authentication
         username = self.user_id
         password = self.key
         base64string = base64.encodestring(
@@ -98,7 +98,7 @@ class ECPConnection(ConnectionUserAndKey):
         Based on Wade Leftwich's function:
         http://code.activestate.com/recipes/146306/
         """
-        #use a random boundary that does not appear in the fields
+        # use a random boundary that does not appear in the fields
         boundary = ''
         while boundary in ''.join(fields):
             boundary = binascii.hexlify(os.urandom(16)).decode('utf-8')
@@ -133,17 +133,17 @@ class ECPNodeDriver(NodeDriver):
         :rtype: ``list`` of :class:`Node`
         """
 
-        #Make the call
+        # Make the call
         res = self.connection.request('/rest/hosting/vm/list').parse_body()
 
-        #Put together a list of node objects
+        # Put together a list of node objects
         nodes = []
         for vm in res['vms']:
             node = self._to_node(vm)
-            if not node is None:
+            if node is not None:
                 nodes.append(node)
 
-        #And return it
+        # And return it
         return nodes
 
     def _to_node(self, vm):
@@ -152,11 +152,11 @@ class ECPNodeDriver(NodeDriver):
         This returns only running VMs.
         """
 
-        #Check state
+        # Check state
         if not vm['state'] == "running":
             return None
 
-        #IPs
+        # IPs
         iplist = [interface['ip'] for interface in vm['interfaces'] if
                   interface['ip'] != '127.0.0.1']
 
@@ -173,7 +173,7 @@ class ECPNodeDriver(NodeDriver):
             else:
                 public_ips.append(ip)
 
-        #Create the node object
+        # Create the node object
         n = Node(
             id=vm['uuid'],
             name=vm['name'],
@@ -192,8 +192,8 @@ class ECPNodeDriver(NodeDriver):
         @inherits: :class:`NodeDriver.reboot_node`
         """
 
-        #Turn the VM off
-        #Black magic to make the POST requests work
+        # Turn the VM off
+        # Black magic to make the POST requests work
         d = self.connection._encode_multipart_formdata({'action': 'stop'})
         self.connection.request(
             '/rest/hosting/vm/%s' % node.id,
@@ -203,9 +203,9 @@ class ECPNodeDriver(NodeDriver):
         ).parse_body()
 
         node.state = NodeState.REBOOTING
-        #Wait for it to turn off and then continue (to turn it on again)
+        # Wait for it to turn off and then continue (to turn it on again)
         while node.state == NodeState.REBOOTING:
-            #Check if it's off.
+            # Check if it's off.
             response = self.connection.request(
                 '/rest/hosting/vm/%s' % node.id
             ).parse_body()
@@ -214,8 +214,8 @@ class ECPNodeDriver(NodeDriver):
             else:
                 time.sleep(5)
 
-        #Turn the VM back on.
-        #Black magic to make the POST requests work
+        # Turn the VM back on.
+        # Black magic to make the POST requests work
         d = self.connection._encode_multipart_formdata({'action': 'start'})
         self.connection.request(
             '/rest/hosting/vm/%s' % node.id,
@@ -234,8 +234,8 @@ class ECPNodeDriver(NodeDriver):
         @inherits: :class:`NodeDriver.destroy_node`
         """
 
-        #Shut down first
-        #Black magic to make the POST requests work
+        # Shut down first
+        # Black magic to make the POST requests work
         d = self.connection._encode_multipart_formdata({'action': 'stop'})
         self.connection.request(
             '/rest/hosting/vm/%s' % node.id,
@@ -244,11 +244,11 @@ class ECPNodeDriver(NodeDriver):
             data=d[1]
         ).parse_body()
 
-        #Ensure there was no applicationl level error
+        # Ensure there was no applicationl level error
         node.state = NodeState.PENDING
-        #Wait for the VM to turn off before continuing
+        # Wait for the VM to turn off before continuing
         while node.state == NodeState.PENDING:
-            #Check if it's off.
+            # Check if it's off.
             response = self.connection.request(
                 '/rest/hosting/vm/%s' % node.id
             ).parse_body()
@@ -257,8 +257,8 @@ class ECPNodeDriver(NodeDriver):
             else:
                 time.sleep(5)
 
-        #Delete the VM
-        #Black magic to make the POST requests work
+        # Delete the VM
+        # Black magic to make the POST requests work
         d = self.connection._encode_multipart_formdata({'action': 'delete'})
         self.connection.request(
             '/rest/hosting/vm/%s' % (node.id),
@@ -276,11 +276,11 @@ class ECPNodeDriver(NodeDriver):
         @inherits: :class:`NodeDriver.list_images`
         """
 
-        #Make the call
+        # Make the call
         response = self.connection.request(
             '/rest/hosting/ptemplate/list').parse_body()
 
-        #Turn the response into an array of NodeImage objects
+        # Turn the response into an array of NodeImage objects
         images = []
         for ptemplate in response['packages']:
             images.append(NodeImage(
@@ -298,11 +298,11 @@ class ECPNodeDriver(NodeDriver):
         @inherits: :class:`NodeDriver.list_sizes`
         """
 
-        #Make the call
+        # Make the call
         response = self.connection.request(
             '/rest/hosting/htemplate/list').parse_body()
 
-        #Turn the response into an array of NodeSize objects
+        # Turn the response into an array of NodeSize objects
         sizes = []
         for htemplate in response['templates']:
             sizes.append(NodeSize(
@@ -346,15 +346,15 @@ class ECPNodeDriver(NodeDriver):
         :rtype: :class:`Node`
         """
 
-        #Find out what network to put the VM on.
+        # Find out what network to put the VM on.
         res = self.connection.request(
             '/rest/hosting/network/list').parse_body()
 
-        #Use the first / default network because there is no way to specific
-        #which one
+        # Use the first / default network because there is no way to specific
+        # which one
         network = res['networks'][0]['uuid']
 
-        #Prepare to make the VM
+        # Prepare to make the VM
         data = {
             'name': str(kwargs['name']),
             'package': str(kwargs['image'].id),
@@ -363,7 +363,7 @@ class ECPNodeDriver(NodeDriver):
             'disk': ''
         }
 
-        #Black magic to make the POST requests work
+        # Black magic to make the POST requests work
         d = self.connection._encode_multipart_formdata(data)
         response = self.connection.request(
             '/rest/hosting/vm/',
@@ -372,7 +372,7 @@ class ECPNodeDriver(NodeDriver):
             data=d[1]
         ).parse_body()
 
-        #Create a node object and return it.
+        # Create a node object and return it.
         n = Node(
             id=response['machine_id'],
             name=data['name'],

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/hostvirtual.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/hostvirtual.py b/libcloud/compute/drivers/hostvirtual.py
index ebef915..e9fa6c8 100644
--- a/libcloud/compute/drivers/hostvirtual.py
+++ b/libcloud/compute/drivers/hostvirtual.py
@@ -211,7 +211,7 @@ class HostVirtualNodeDriver(NodeDriver):
     def destroy_node(self, node):
         params = {
             'mbpkgid': node.id,
-            #'reason': 'Submitted through Libcloud API'
+            # 'reason': 'Submitted through Libcloud API'
         }
 
         result = self.connection.request(

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/nephoscale.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/nephoscale.py b/libcloud/compute/drivers/nephoscale.py
index efe5089..1888ac8 100644
--- a/libcloud/compute/drivers/nephoscale.py
+++ b/libcloud/compute/drivers/nephoscale.py
@@ -48,10 +48,10 @@ NODE_STATE_MAP = {
 VALID_RESPONSE_CODES = [httplib.OK, httplib.ACCEPTED, httplib.CREATED,
                         httplib.NO_CONTENT]
 
-#used in create_node and specifies how many times to get the list of nodes and
-#check if the newly created node is there. This is because when a request is
-#sent to create a node, NephoScale replies with the job id, and not the node
-#itself thus we don't have the ip addresses, that are required in deploy_node
+# used in create_node and specifies how many times to get the list of nodes and
+# check if the newly created node is there. This is because when a request is
+# sent to create a node, NephoScale replies with the job id, and not the node
+# itself thus we don't have the ip addresses, that are required in deploy_node
 CONNECT_ATTEMPTS = 10
 
 
@@ -388,9 +388,9 @@ get all keys call with no arguments')
         if not nowait:
             return node
         else:
-            #try to get the created node public ips, for use in deploy_node
-            #At this point we don't have the id of the newly created Node,
-            #so search name in nodes
+            # try to get the created node public ips, for use in deploy_node
+            # At this point we don't have the id of the newly created Node,
+            # so search name in nodes
             created_node = False
             while connect_attempts > 0:
                 nodes = self.list_nodes()
@@ -411,7 +411,7 @@ get all keys call with no arguments')
         public_ips = []
         private_ips = []
         ip_addresses = data.get('ipaddresses', '')
-        #E.g. "ipaddresses": "198.120.14.6, 10.132.60.1"
+        # E.g. "ipaddresses": "198.120.14.6, 10.132.60.1"
         if ip_addresses:
             for ip in ip_addresses.split(','):
                 ip = ip.replace(' ', '')

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index c7d0b09..83a5dad 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -1989,7 +1989,7 @@ class OpenStack_1_1_NodeDriver(OpenStackNodeDriver):
                 public_ips.extend(ips)
             else:
                 for ip in ips:
-                    #is_private_subnet does not check for ipv6
+                    # is_private_subnet does not check for ipv6
                     try:
                         if is_private_subnet(ip):
                             private_ips.append(ip)

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/opsource.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/opsource.py b/libcloud/compute/drivers/opsource.py
index c38b042..a2024c3 100644
--- a/libcloud/compute/drivers/opsource.py
+++ b/libcloud/compute/drivers/opsource.py
@@ -46,7 +46,7 @@ from libcloud.compute.types import NodeState, Provider
 #   x implement list_images()   (only support Base OS images,
 #                                 no customer images yet)
 #   x implement list_locations()
-#	x implement ex_* extension functions for opsource-specific featurebody =s
+#       x implement ex_* extension functions for opsource-specific featurebody
 #       x ex_graceful_shutdown
 #       x ex_start_node
 #       x ex_power_off
@@ -67,7 +67,8 @@ from libcloud.compute.types import NodeState, Provider
 #       - delete customer images
 #       - modify customer images
 #   - add "pending-servers" in list_nodes()
-#	- implement various ex_* extension functions for opsource-specific features
+#       - implement various ex_* extension functions for opsource-specific
+#         features
 #       - ex_modify_server()
 #       - ex_add_storage_to_server()
 #       - ex_snapshot_server()  (create's customer image)

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/rimuhosting.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/rimuhosting.py b/libcloud/compute/drivers/rimuhosting.py
index 32fbb74..35bd9e4 100644
--- a/libcloud/compute/drivers/rimuhosting.py
+++ b/libcloud/compute/drivers/rimuhosting.py
@@ -288,7 +288,7 @@ class RimuHostingNodeDriver(NodeDriver):
         data['instantiation_options']['password'] = auth.password
 
         if 'ex_billing_oid' in kwargs:
-            #TODO check for valid oid.
+            # TODO check for valid oid.
             data['billing_oid'] = kwargs['ex_billing_oid']
 
         if 'ex_host_server_oid' in kwargs:

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/compute/drivers/softlayer.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/softlayer.py b/libcloud/compute/drivers/softlayer.py
index 3f89938..ced4a34 100644
--- a/libcloud/compute/drivers/softlayer.py
+++ b/libcloud/compute/drivers/softlayer.py
@@ -341,7 +341,7 @@ class SoftLayerNodeDriver(NodeDriver):
                                            price=None,
                                            driver=self.connection.driver))
         ex_size_data = SL_TEMPLATES.get(int(size.id)) or {}
-        #plan keys are ints
+        # plan keys are ints
         cpu_count = kwargs.get('ex_cpus') or ex_size_data.get('cpus') or \
             DEFAULT_CPU_SIZE
         ram = kwargs.get('ex_ram') or ex_size_data.get('ram') or \

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/loadbalancer/drivers/rackspace.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/rackspace.py b/libcloud/loadbalancer/drivers/rackspace.py
index 13be22c..1807ed6 100644
--- a/libcloud/loadbalancer/drivers/rackspace.py
+++ b/libcloud/loadbalancer/drivers/rackspace.py
@@ -404,7 +404,7 @@ class RackspaceLBDriver(Driver, OpenStackDriverMixin):
         balancer_attrs.update({
             'nodes': [self._member_attributes(member) for member in members],
         })
-        #balancer_attrs['nodes'] = ['fu']
+        # balancer_attrs['nodes'] = ['fu']
         balancer_object = {"loadBalancer": balancer_attrs}
 
         resp = self.connection.request('/loadbalancers',

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/storage/drivers/s3.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/s3.py b/libcloud/storage/drivers/s3.py
index 69dcafc..8164939 100644
--- a/libcloud/storage/drivers/s3.py
+++ b/libcloud/storage/drivers/s3.py
@@ -817,8 +817,8 @@ class BaseS3StorageDriver(StorageDriver):
 
         # TODO: Let the underlying exceptions bubble up and capture the SIGPIPE
         # here.
-        #SIGPIPE is thrown if the provided container does not exist or the user
-        # does not have correct permission
+        # SIGPIPE is thrown if the provided container does not exist or the
+        # user does not have correct permission
         result_dict = self._upload_object(
             object_name=object_name, content_type=content_type,
             upload_func=upload_func, upload_func_kwargs=upload_func_kwargs,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/test/compute/test_gridspot.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_gridspot.py b/libcloud/test/compute/test_gridspot.py
index 2fe80f7..0160f8e 100644
--- a/libcloud/test/compute/test_gridspot.py
+++ b/libcloud/test/compute/test_gridspot.py
@@ -48,7 +48,7 @@ class GridspotTest(unittest.TestCase, TestCaseMixin):
         GridspotMockHttp.type = 'BAD_AUTH'
         try:
             self.driver.list_nodes()
-             # Above command should have thrown an InvalidCredsException
+            # Above command should have thrown an InvalidCredsException
             self.assertTrue(False)
         except InvalidCredsError:
             self.assertTrue(True)

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index bdc6979..ca379b2 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -301,7 +301,7 @@ class OpenStack_1_0_Tests(unittest.TestCase, TestCaseMixin):
     driver_klass = OpenStack_1_0_NodeDriver
     driver_args = OPENSTACK_PARAMS
     driver_kwargs = {}
-    #driver_kwargs = {'ex_force_auth_version': '1.0'}
+    # driver_kwargs = {'ex_force_auth_version': '1.0'}
 
     @classmethod
     def create_driver(self):
@@ -961,15 +961,15 @@ class OpenStack_1_1_Tests(unittest.TestCase, TestCaseMixin):
         node = nodes[0]
 
         self.assertEqual('12065', node.id)
-        #test public IPv4
+        # test public IPv4
         self.assertTrue('12.16.18.28' in node.public_ips)
         self.assertTrue('50.57.94.35' in node.public_ips)
-        #test public IPv6
+        # test public IPv6
         self.assertTrue(
             '2001:4801:7808:52:16:3eff:fe47:788a' in node.public_ips)
-        #test private IPv4
+        # test private IPv4
         self.assertTrue('10.182.64.34' in node.private_ips)
-        #test private IPv6
+        # test private IPv6
         self.assertTrue(
             'fec0:4801:7808:52:16:3eff:fe60:187d' in node.private_ips)
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/test/dns/test_route53.py
----------------------------------------------------------------------
diff --git a/libcloud/test/dns/test_route53.py b/libcloud/test/dns/test_route53.py
index bc11125..2994203 100644
--- a/libcloud/test/dns/test_route53.py
+++ b/libcloud/test/dns/test_route53.py
@@ -220,7 +220,7 @@ class Route53MockHttp(MockHttp):
         return (httplib.OK, body, {}, httplib.responses[httplib.OK])
 
     def _2012_02_29_hostedzone(self, method, url, body, headers):
-        #print method, url, body, headers
+        # print method, url, body, headers
         if method == "POST":
             body = self.fixtures.load("create_zone.xml")
             return (httplib.CREATED, body, {}, httplib.responses[httplib.OK])

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e66146fe/libcloud/test/test_connection.py
----------------------------------------------------------------------
diff --git a/libcloud/test/test_connection.py b/libcloud/test/test_connection.py
index c17ff4d..ae09c7a 100644
--- a/libcloud/test/test_connection.py
+++ b/libcloud/test/test_connection.py
@@ -52,7 +52,7 @@ class ConnectionClassTestCase(unittest.TestCase):
         con = Connection()
         con.connection = Mock()
 
-        ## GET method
+        # GET method
         # No data, no content length should be present
         con.request('/test', method='GET', data=None)
         call_kwargs = con.connection.request.call_args[1]
@@ -69,7 +69,7 @@ class ConnectionClassTestCase(unittest.TestCase):
         call_kwargs = con.connection.request.call_args[1]
         self.assertEqual(call_kwargs['headers']['Content-Length'], '1')
 
-        ## POST, PUT method
+        # POST, PUT method
         # No data, content length should be present
         for method in ['POST', 'PUT', 'post', 'put']:
             con.request('/test', method=method, data=None)


Mime
View raw message