summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-08-17 19:15:05 -0400
committerKali Kaneko <kali@leap.se>2015-08-17 19:15:05 -0400
commit97096fa2c22e96ec238c38ad3befdd052b5028cf (patch)
tree051fa2376bdff53f327e08ffbae6633b68b59907 /src/leap
parent8965be42773e3e6c7e154f2c1a27f4e34031ae91 (diff)
[style] pep8 fix
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/common/http.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/common/http.py b/src/leap/common/http.py
index 6fc10b4..0dee3a2 100644
--- a/src/leap/common/http.py
+++ b/src/leap/common/http.py
@@ -20,6 +20,7 @@ Twisted HTTP/HTTPS client.
try:
import twisted
+ assert twisted
except ImportError:
print "*******"
print "Twisted is needed to use leap.common.http module"
@@ -178,7 +179,7 @@ class HTTPClient(object):
return d
def request(self, url, method='GET', body=None, headers={},
- callback=readBody):
+ callback=readBody):
"""
Perform an HTTP request, but limit the maximum amount of concurrent
connections.
@@ -208,7 +209,7 @@ class HTTPClient(object):
callable(callback),
message="The callback parameter should be a callable!")
return self._semaphore.run(self._request, url, method, body, headers,
- callback)
+ callback)
def close(self):
"""