diff options
author | Kali Kaneko <kali@leap.se> | 2015-08-17 19:15:05 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-08-17 19:15:05 -0400 |
commit | 97096fa2c22e96ec238c38ad3befdd052b5028cf (patch) | |
tree | 051fa2376bdff53f327e08ffbae6633b68b59907 /src | |
parent | 8965be42773e3e6c7e154f2c1a27f4e34031ae91 (diff) |
[style] pep8 fix
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/common/http.py | 5 |
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): """ |