Removed unused imports; whitespace normalization
Change-Id: I5e66c170e37f1382ec500cd6ae4a71435de7929f
diff --git a/kong/common/http.py b/kong/common/http.py
index 47ac058..d7f4a48 100644
--- a/kong/common/http.py
+++ b/kong/common/http.py
@@ -14,7 +14,6 @@
self.base_url = "http://%s:%s/%s" % (host, port, base_url)
def poll_request(self, method, url, check_response, **kwargs):
-
timeout = kwargs.pop('timeout', 180)
interval = kwargs.pop('interval', 2)
# Start timestamp
@@ -29,15 +28,13 @@
time.sleep(interval)
def poll_request_status(self, method, url, status=200, **kwargs):
-
def check_response(resp, body):
return resp['status'] == str(status)
self.poll_request(method, url, check_response, **kwargs)
-
def request(self, method, url, **kwargs):
- # Default to management_url, but can be overridden here
+ # Default to management_url, but can be overridden here
# (for auth requests)
base_url = kwargs.get('base_url', self.management_url)