]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enable checks for E711, E712 and E713
authorChristian Berendt <berendt@b1-systems.de>
Fri, 1 Aug 2014 11:10:20 +0000 (13:10 +0200)
committerChristian Berendt <berendt@b1-systems.de>
Fri, 1 Aug 2014 12:34:47 +0000 (14:34 +0200)
commit1be1da1020281a83d6285173a6d6078ffe979194
tree8e6e3642265d5503012f1e68ecd182ef1c665947
parent3a04abfc5c9cd06ee229afd8bd4da4d932dd5244
Enable checks for E711, E712 and E713

* E711 comparison to None should be 'if cond is None:'
* E712 comparison to True should be 'if cond is True:' or 'if cond:'
* E713 test for membership should be 'not in'

Change-Id: I1481209a85fa6db0343d0111e2b19d9fab4538a7
12 files changed:
bin/cinder-rtstool
cinder/db/sqlalchemy/api.py
cinder/tests/api/fakes.py
cinder/tests/api/v2/test_volumes.py
cinder/tests/keymgr/test_key.py
cinder/tests/test_hds_iscsi.py
cinder/utils.py
cinder/volume/api.py
cinder/volume/drivers/emc/emc_smis_common.py
cinder/volume/drivers/eqlx.py
cinder/volume/drivers/netapp/iscsi.py
tox.ini