summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-09-20 21:17:04 +0200
committerKali Kaneko <kali@leap.se>2017-09-20 21:24:38 +0200
commit57358304bc8b288f7b9df5f0d9a18df394fe77e6 (patch)
treecef5358d90b936362fe562d0d012d995a3740ee0
parente4587411f03d768e3b74b9466f89355754d72597 (diff)
[style] pep8 and changelog
-rw-r--r--CHANGELOG.rst4
-rw-r--r--src/leap/common/http.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 6bba298..1f9cbb3 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,6 +7,10 @@ Changelog
-----------------
.. note:: This version is not yet released and is under active development.
+
+Bugfixes
+++++++++
+- Add proper formatting for the modification time (if-modified-since header)
0.6.0 Jul 14, 2017
diff --git a/src/leap/common/http.py b/src/leap/common/http.py
index dd1b0f9..1f30903 100644
--- a/src/leap/common/http.py
+++ b/src/leap/common/http.py
@@ -293,7 +293,8 @@ class HTTPClient(object):
:return: A deferred that fires with the body of the request.
:rtype: twisted.internet.defer.Deferred
"""
- assert callable(callback), "The callback parameter should be a callable!"
+ assert callable(callback), ("The callback parameter "
+ "should be a callable!")
return self._semaphore.run(self._request, url, method, body, headers,
callback)