summaryrefslogtreecommitdiff
path: root/src/leap/common/http.py
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-22 15:38:56 -0300
committerKali Kaneko <kali@leap.se>2015-07-23 16:16:36 -0400
commit25d3b7c80f85cd94159b574274108061a94f1bc9 (patch)
tree9e1f971b86b5f758a0573db7c9f3a7c2df394f62 /src/leap/common/http.py
parent07d421a32f3bb45932668f4951233166ada4e770 (diff)
[style] Fixed pep8 warnings
Diffstat (limited to 'src/leap/common/http.py')
-rw-r--r--src/leap/common/http.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/leap/common/http.py b/src/leap/common/http.py
index c93e65b..56938b4 100644
--- a/src/leap/common/http.py
+++ b/src/leap/common/http.py
@@ -150,6 +150,7 @@ class HTTPClient(object):
# An IBodyProducer to write the body of an HTTP request as a string.
#
+
class _StringBodyProducer(object):
"""
A producer that writes the body of a request to a consumer.
@@ -254,18 +255,18 @@ class _HTTP11ClientProtocol(HTTP11ClientProtocol):
self._timeoutCall = None
def _finishResponse_WAITING(self, rest):
- """
- Cancel the timeout when finished receiving the response.
- """
- self._cancelTimeout()
- HTTP11ClientProtocol._finishResponse_WAITING(self, rest)
+ """
+ Cancel the timeout when finished receiving the response.
+ """
+ self._cancelTimeout()
+ HTTP11ClientProtocol._finishResponse_WAITING(self, rest)
def _finishResponse_TRANSMITTING(self, rest):
- """
- Cancel the timeout when finished receiving the response.
- """
- self._cancelTimeout()
- HTTP11ClientProtocol._finishResponse_TRANSMITTING(self, rest)
+ """
+ Cancel the timeout when finished receiving the response.
+ """
+ self._cancelTimeout()
+ HTTP11ClientProtocol._finishResponse_TRANSMITTING(self, rest)
def dataReceived(self, bytes):
"""