<p dir="ltr">Suppose that's the way to do it.</p>
<br><div class="gmail_quote">On Fri, Jan 30, 2015, 7:44 AM liuxinguo <<a href="mailto:liuxinguo@huawei.com">liuxinguo@huawei.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ZH-CN" link="blue" vlink="purple">
<div>
<p class="MsoNormal" align="left" style="margin-left:0cm;text-align:left">
<u></u><span lang="EN-US" style="font-size:10.0pt;font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">I have seen that the module ‘oslo.config’ have changed to ‘oslo_config’ in Kilo but in Juno it is still ‘oslo.config’.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I want my code work compatibly both for Juno and Kilo so I import this module in this way:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">try</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">:</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><u></u><u></u></span></p>
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">from</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> oslo_config
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">import</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
<span style="background:yellow">cfg</span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><u></u><u></u></span></p>
<p class="MsoNormal" align="left" style="text-align:left;text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">except</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">:</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:18.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">from</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> oslo.config
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">import</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black">
<span style="background:yellow">cfg</span><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" align="left" style="margin-left:0cm;text-align:left">
<u></u><span lang="EN-US" style="font-size:10.0pt;font-family:Symbol;color:#434343"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">Does this way of importing module will be accepted by the
<a><span style="color:windowtext;text-decoration:none">community</span></a>? Or is there any other better
<a><span style="color:windowtext;text-decoration:none">way</span></a>?</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#434343"><u></u><u></u></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US">Thanks and regards,<u></u><u></u></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US">Liu</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#434343"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
______________________________<u></u>______________________________<u></u>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.<u></u>openstack.org?subject:<u></u>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote></div>