Rename 'async' to 'async_', as the former is a reserved keyword starting with
python 3.7.

Signed-off-by: Quentin Pradet <[email protected]>


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

Branch: refs/heads/trunk
Commit: 4565069867246e552b396c9b5eeb13ea78f1ab6b
Parents: a1ebd14
Author: Andreas Hasenack <[email protected]>
Authored: Mon Aug 27 10:42:34 2018 -0300
Committer: Quentin Pradet <[email protected]>
Committed: Mon Aug 27 19:20:04 2018 +0400

----------------------------------------------------------------------
 libcloud/compute/drivers/azure.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/45650698/libcloud/compute/drivers/azure.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure.py 
b/libcloud/compute/drivers/azure.py
index eff85ca..bd88e5f 100644
--- a/libcloud/compute/drivers/azure.py
+++ b/libcloud/compute/drivers/azure.py
@@ -1435,7 +1435,7 @@ class AzureNodeDriver(NodeDriver):
 
         return response
 
-    def _perform_post(self, path, body, response_type=None, async=False):
+    def _perform_post(self, path, body, response_type=None, async_=False):
         request = AzureHTTPRequest()
         request.method = 'POST'
         request.host = AZURE_SERVICE_MANAGEMENT_HOST
@@ -1447,7 +1447,7 @@ class AzureNodeDriver(NodeDriver):
 
         return response
 
-    def _perform_put(self, path, body, response_type=None, async=False):
+    def _perform_put(self, path, body, response_type=None, async_=False):
         request = AzureHTTPRequest()
         request.method = 'PUT'
         request.host = AZURE_SERVICE_MANAGEMENT_HOST
@@ -1459,7 +1459,7 @@ class AzureNodeDriver(NodeDriver):
 
         return response
 
-    def _perform_delete(self, path, async=False):
+    def _perform_delete(self, path, async_=False):
         request = AzureHTTPRequest()
         request.method = 'DELETE'
         request.host = AZURE_SERVICE_MANAGEMENT_HOST
@@ -1470,7 +1470,7 @@ class AzureNodeDriver(NodeDriver):
 
         self.raise_for_response(response, 202)
 
-        if async:
+        if async_:
             return self._parse_response_for_async_op(response)
 
     def _perform_request(self, request):

Reply via email to