Compare strictly to None

Follow the coding standards better by using a strict comparison to None.

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

Branch: refs/heads/trunk
Commit: d963e1df3af66d91c0432071d5e6477cf366a637
Parents: e31a64d
Author: Juan Font <juanfontalo...@gmail.com>
Authored: Thu Dec 10 15:03:14 2015 +0100
Committer: Juan Font <juanfontalo...@gmail.com>
Committed: Thu Dec 10 15:03:14 2015 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/vcloud.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/d963e1df/libcloud/compute/drivers/vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vcloud.py 
b/libcloud/compute/drivers/vcloud.py
index caf462a..0d0f208 100644
--- a/libcloud/compute/drivers/vcloud.py
+++ b/libcloud/compute/drivers/vcloud.py
@@ -848,7 +848,7 @@ class VCloud_1_5_Connection(VCloudConnection):
                      'application/vnd.vmware.vcloud.orgList+xml')).get('href')
             )
 
-            if self.proxy_url:
+            if self.proxy_url is not None:
                 self.connection.set_http_proxy(self.proxy_url)
             self.connection.request(method='GET', url=org_list_url,
                                     headers=self.add_default_headers({}))

Reply via email to