Suppose that's the way to do it.

On Fri, Jan 30, 2015, 7:44 AM liuxinguo <liuxin...@huawei.com> 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:
>
>
>
> try:
>
>     from oslo_config import cfg
>
> except:
>
> from oslo.config import cfg
>
>
>
> ·         Does this way of importing module will be accepted by the
> community? Or is there any other better way?
>
>
>
> Thanks and regards,
>
> Liu
>
>
>  ____________________________________________________________
> ______________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to