From 02456694cc1d0f18851c874f425d11b813280870 Mon Sep 17 00:00:00 2001 From: wanghao Date: Mon, 6 Mar 2017 17:06:46 +0800 Subject: [PATCH] Make import clearly in i18n.py We should avoid to use "from xxx import *" and make import clearly. Change-Id: Ia507d8edf35ee1d3f4e671a098c311836f23b115 --- zaqar/i18n.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zaqar/i18n.py b/zaqar/i18n.py index d49e9cd3b..f97831ee8 100644 --- a/zaqar/i18n.py +++ b/zaqar/i18n.py @@ -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