]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
PEP8 quantum cleanup
authorlzyeval <lzyeval@gmail.com>
Wed, 4 Jan 2012 09:10:35 +0000 (17:10 +0800)
committerlzyeval <lzyeval@gmail.com>
Wed, 4 Jan 2012 12:12:31 +0000 (20:12 +0800)
commit4572e6500ace4996f63fb12f09808346e87f9551
tree24732f5e9ab7754f0105d1e0bbb2ff9c5cb0ff77
parent5b23b5ef6b3fd816150ef0499661a99748e0faad
PEP8 quantum cleanup

Fixes bug #911663

The None, True, and False values are singletons.

All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.
All Object type comparisons should use isinstance()
instead of comparing types directly.

Change-Id: Id5c797d3339d0d7015bac386088133540f0c0c9e
16 files changed:
quantum/api/api_common.py
quantum/client/__init__.py
quantum/common/flags.py
quantum/common/serializer.py
quantum/common/utils.py
quantum/extensions/_pprofiles.py
quantum/plugins/cisco/l2network_plugin.py
quantum/plugins/cisco/models/l2network_single_blade.py
quantum/plugins/cisco/services/services_logistics.py
quantum/plugins/cisco/tests/unit/test_database.py
quantum/plugins/cisco/tests/unit/test_ucs_plugin.py
quantum/plugins/cisco/ucs/cisco_ucs_inventory.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/plugins/openvswitch/tests/unit/test_vlan_map.py
quantum/tests/unit/test_database.py
quantum/wsgi.py