Make import clearly in i18n.py
We should avoid to use "from xxx import *" and make import clearly. Change-Id: Ia507d8edf35ee1d3f4e671a098c311836f23b115
This commit is contained in:
parent
96158bb93c
commit
02456694cc
@ -13,9 +13,15 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_i18n import * # noqa
|
||||
"""oslo.i18n integration module.
|
||||
|
||||
_translators = TranslatorFactory(domain='zaqar')
|
||||
See http://docs.openstack.org/developer/oslo.i18n/usage.html .
|
||||
|
||||
"""
|
||||
|
||||
import oslo_i18n as i18n
|
||||
|
||||
_translators = i18n.TranslatorFactory(domain='zaqar')
|
||||
|
||||
# The primary translation function using the well-known name "_"
|
||||
_ = _translators.primary
|
||||
|
Loading…
x
Reference in New Issue
Block a user