Reviewed: https://review.openstack.org/2772 Committed: http://github.com/openstack/python-novaclient/commit/4ff27703d077fc83bb715060a774faf4a15e9736 Submitter: Jenkins Branch: master
commit 4ff27703d077fc83bb715060a774faf4a15e9736 Author: lzyeval <email address hidden> Date: Wed Jan 4 09:54:39 2012 +0800
PEP8 python-novaclient cleanup
Fixes bug #911552
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: Ia5571e58e2662c652f0e996d8c1a1acb4531623d
Reviewed: https:/ /review. openstack. org/2772 github. com/openstack/ python- novaclient/ commit/ 4ff27703d077fc8 3bb715060a774fa f4a15e9736
Committed: http://
Submitter: Jenkins
Branch: master
commit 4ff27703d077fc8 3bb715060a774fa f4a15e9736
Author: lzyeval <email address hidden>
Date: Wed Jan 4 09:54:39 2012 +0800
PEP8 python-novaclient cleanup
Fixes bug #911552
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: Ia5571e58e2662c 652f0e996d8c1a1 acb4531623d