summaryrefslogtreecommitdiff
path: root/glanceclient/common/http.py
diff options
context:
space:
mode:
authorDarja Shakhray <dshakhray@mirantis.com>2015-07-20 17:29:49 +0300
committerDarja Shakhray <dshakhray@mirantis.com>2015-07-21 17:08:27 +0300
commitec0f2dfd8500d230895e286462aaf69c43777038 (patch)
treed3ef94392fe49f222f07a7e33cb2a371185f95f5 /glanceclient/common/http.py
parentd9d586942bf3f78ba174eb5832f60d80a7c839ca (diff)
downloadpython-glanceclient-ec0f2dfd8500d230895e286462aaf69c43777038.tar.gz
Enable flake8 checks
This commit enables new flake8 checks: * E265 block comment should start with '# ' * H405 multi line docstring summary not separated with an empty line * E123 closing bracket does not match indentation of opening bracket's line * H238 old style class declaration, use new style (inherit from `object`) * E128 continuation line under-indented for visual indent and makes related changes in the code. Change-Id: Ie993afc930f6b74d7a990bcaa9fc0e9f5ba1585c
Diffstat (limited to 'glanceclient/common/http.py')
-rw-r--r--glanceclient/common/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py
index b8328f7..a9df215 100644
--- a/glanceclient/common/http.py
+++ b/glanceclient/common/http.py
@@ -218,6 +218,7 @@ class HTTPClient(_BaseHTTPClient):
def _request(self, method, url, **kwargs):
"""Send an http request with the specified characteristics.
+
Wrapper around httplib.HTTP(S)Connection.request to handle tasks such
as setting headers and error handling.
"""