Skip to content

Commit

Permalink
Merge "Clean up pep8 E502, E711 violations"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 18, 2012
2 parents 1eb942d + f071f07 commit 923b901
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
<jeblair@hp.com> <james.blair@rackspace.com>
<chris@pistoncloud.com> <chris@slicehost.com>
<ken.pepple@gmail.com> <ken.pepple@rabbityard.com>
Zhongyue Luo <zhongyue.nah@intel.com> <lzyeval@gmail.com>
2 changes: 1 addition & 1 deletion glance/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _get_terminal_size_unknownOS():

height_width = func.get(platform.os.name, _get_terminal_size_unknownOS)()

if height_width == None:
if height_width is None:
raise exception.Invalid()

for i in height_width:
Expand Down
4 changes: 2 additions & 2 deletions glance/registry/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def do_request(self, method, action, **kwargs):
action, **kwargs)
status = res.status
request_id = res.getheader('x-openstack-request-id')
msg = _("Registry request %(method)s %(action)s HTTP %(status)s"\
" request id %(request_id)s")
msg = _("Registry request %(method)s %(action)s HTTP %(status)s"
" request id %(request_id)s")
LOG.debug(msg % locals())

except:
Expand Down
2 changes: 1 addition & 1 deletion tools/test-requires
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ nose
nose-exclude
openstack.nose_plugin>=0.7
nosehtmloutput>=0.0.3
pep8==1.1
pep8==1.3.3
sphinx>=1.1.2
requests

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ commands = nosetests {posargs}
downloadcache = ~/cache/pip

[testenv:pep8]
commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack .
deps = pep8==1.3.3
commands = pep8 --ignore=E121,E122,E123,E124,E125,E126,E127,E128,E711 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack .

[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
Expand Down

0 comments on commit 923b901

Please sign in to comment.