cfg: unneeded multiple inheritance
Bug #927650 reported by
Mark McLoughlin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-common |
Fix Released
|
Low
|
Zhongyue Luo |
Bug Description
From Monsyne Dragon in https:/
File nova/openstack/
Line 696: class ConfigOpts(
I don't think we really need to multiply inherit from 'object' here.
esp. since collections.Mapping already inherits from object.
While this doesn't affect anything atm, this kind of diamond inheritance may lead to some rather non-intuitive behavior if
someone subclasses ConfigOpts in the future
tags: | added: cfg |
Changed in openstack-common: | |
milestone: | none → 2012.1 |
importance: | Undecided → Low |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In python=<2.6, collections.Mapping inherits from Iterable, and collections. Container
collections.Sized, collections.
which are also subclasses of object.