PEP8 quantum cleanup
Bug #911663 reported by
Zhongyue Luo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Zhongyue Luo | ||
quantum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
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.
Changed in quantum: | |
assignee: | nobody → LZY (lzyeval) |
Changed in quantum: | |
milestone: | none → essex-3 |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | essex-3 → 2012.1 |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/2781
Review: https:/