summaryrefslogtreecommitdiff
path: root/glanceclient/v1
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/v1
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/v1')
-rw-r--r--glanceclient/v1/image_members.py4
-rw-r--r--glanceclient/v1/images.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/glanceclient/v1/image_members.py b/glanceclient/v1/image_members.py
index d940a5f..79242b5 100644
--- a/glanceclient/v1/image_members.py
+++ b/glanceclient/v1/image_members.py
@@ -44,7 +44,7 @@ class ImageMemberManager(base.ManagerWithFind):
if image and member:
try:
out.append(self.get(image, member))
- #TODO(bcwaldon): narrow this down to 404
+ # TODO(bcwaldon): narrow this down to 404
except Exception:
pass
elif image:
@@ -52,7 +52,7 @@ class ImageMemberManager(base.ManagerWithFind):
elif member:
out.extend(self._list_by_member(member))
else:
- #TODO(bcwaldon): figure out what is appropriate to do here as we
+ # TODO(bcwaldon): figure out what is appropriate to do here as we
# are unable to provide the requested response
pass
return out
diff --git a/glanceclient/v1/images.py b/glanceclient/v1/images.py
index 11a56ba..4e26c51 100644
--- a/glanceclient/v1/images.py
+++ b/glanceclient/v1/images.py
@@ -26,7 +26,7 @@ from glanceclient.openstack.common.apiclient import base
UPDATE_PARAMS = ('name', 'disk_format', 'container_format', 'min_disk',
'min_ram', 'owner', 'size', 'is_public', 'protected',
'location', 'checksum', 'copy_from', 'properties',
- #NOTE(bcwaldon: an attempt to update 'deleted' will be
+ # NOTE(bcwaldon: an attempt to update 'deleted' will be
# ignored, but we need to support it for backwards-
# compatibility with the legacy client library
'deleted')
@@ -289,7 +289,7 @@ class ImageManager(base.ManagerWithFind):
return_request_id.append(resp.headers.get(OS_REQ_ID_HDR, None))
def create(self, **kwargs):
- """Create an image
+ """Create an image.
TODO(bcwaldon): document accepted params
"""
@@ -324,7 +324,7 @@ class ImageManager(base.ManagerWithFind):
return Image(self, self._format_image_meta_for_user(body['image']))
def update(self, image, **kwargs):
- """Update an image
+ """Update an image.
TODO(bcwaldon): document accepted params
"""