[openstack-dev] [all] Question about import module
doug at doughellmann.com
Fri Jan 30 15:17:56 UTC 2015
On Thu, Jan 29, 2015, at 09:10 PM, liuxinguo wrote:
> * I have seen that the module 'oslo.config' have changed to
> 'oslo_config' in Kilo but in Juno it is still 'oslo.config'.
> I want my code work compatibly both for Juno and Kilo so I import this
> module in this way:
> from oslo_config import cfg
> from oslo.config import cfg
> * Does this way of importing module will be accepted by the
> community<app:ds:community>? Or is there any other better
There's no need to do this. The config library still supports using
oslo.config for now, and we are going to cap the versions of the
libraries used in Juno to avoid issues in the future.
Please update master branches of any projects using Oslo libraries to
import from the new name only.
> Thanks and regards,
> OpenStack Development Mailing List (not for usage questions)
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev