Merge "Fix PEP8 E265 errors"

This commit is contained in:
Jenkins 2014-06-27 21:41:33 +00:00 committed by Gerrit Code Review
commit 58583b55ca
6 changed files with 4 additions and 19 deletions

View File

@ -251,16 +251,6 @@ class RESTApi(object):
else:
return response.json()
###hack this for keystone!!!
#data = body[response_key]
# NOTE(ja): keystone returns values as list as {'values': [ ... ]}
# unlike other services which just return the list...
#if isinstance(data, dict):
# try:
# data = data['values']
# except KeyError:
# pass
def set(self, url, data=None, response_key=None, **kwargs):
"""Update an object via a PUT request

View File

@ -693,7 +693,7 @@ class MigrateServer(command.Command):
if utils.wait_for_status(
compute_client.servers.get,
server.id,
#callback=_show_progress,
callback=_show_progress,
):
sys.stdout.write('Complete\n')
else:

View File

@ -137,10 +137,6 @@ class TestRESTApi(utils.TestCase):
user_agent=fake_user_agent,
)
gopher = api.request('GET', fake_url)
#session_mock.return_value.headers.setdefault.assert_called_with(
# 'X-Auth-Token',
# fake_auth,
#)
session_mock.return_value.request.assert_called_with(
'GET',
fake_url,

View File

@ -114,7 +114,8 @@ IDENTITY_PROVIDER = {
'description': idp_description
}
#Assignments
# Assignments
ASSIGNMENT_WITH_PROJECT_ID_AND_USER_ID = {
'scope': {'project': {'id': project_id}},
'user': {'id': user_id},

View File

@ -220,7 +220,6 @@ class TestVolumeCreate(TestVolume):
None,
None,
volume_fakes.volume_name,
#volume_fakes.volume_description,
None,
None,
identity_fakes.user_id,
@ -296,7 +295,6 @@ class TestVolumeCreate(TestVolume):
None,
None,
volume_fakes.volume_name,
#volume_fakes.volume_description,
None,
None,
identity_fakes.user_id,

View File

@ -28,6 +28,6 @@ commands=
python setup.py build_sphinx
[flake8]
ignore = E126,E202,W602,H302,H402,E265,H305,H307,H904
ignore = E126,E202,W602,H302,H402,H305,H307,H904
show-source = True
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools