openstack-poc team mailing list archive
-
openstack-poc team
-
Mailing list archive
-
Message #00345
[Bug 927650] Re: cfg: unneeded multiple inheritance
Fix proposed to branch: master
Review: https://review.openstack.org/4059
** Changed in: openstack-common
Status: Confirmed => In Progress
** Changed in: openstack-common
Assignee: (unassigned) => Zhongyue Luo (lzyeval)
--
You received this bug notification because you are a member of OpenStack
Common Drivers, which is the registrant for openstack-common.
https://bugs.launchpad.net/bugs/927650
Title:
cfg: unneeded multiple inheritance
Status in openstack-common:
In Progress
Bug description:
From Monsyne Dragon in https://review.openstack.org/3729
File nova/openstack/common/cfg.py
Line 696: class ConfigOpts(collections.Mapping, object):
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-common/+bug/927650/+subscriptions
References