Remove direct type comparisons
Bug #910763 reported by
Zhongyue Luo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Zhongyue Luo |
Bug Description
Type comparisons should use isinstance with built-in factory functions.
Use "if not isinstance(items, list)" rather than "if not isinstance(items, types.ListType)"
summary: |
- Remove type comparisons using types.* + Remove direct type comparisons |
Changed in nova: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
http:// docs.python. org/library/ types.html