From e1139f262f4cfbd12803faebcc85109ce25982c8 Mon Sep 17 00:00:00 2001 From: tengqm Date: Mon, 19 Jan 2015 13:40:24 +0800 Subject: [PATCH] Fix oslo.i18n namespace error --- senlinclient/common/i18n.py | 10 +++++----- tox.ini | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/senlinclient/common/i18n.py b/senlinclient/common/i18n.py index 07f755c1..2c378e2c 100644 --- a/senlinclient/common/i18n.py +++ b/senlinclient/common/i18n.py @@ -10,15 +10,15 @@ # License for the specific language governing permissions and limitations # under the License. -""" -oslo.i18n integration module. +''' +oslo_i18n integration module. See http://docs.openstack.org/developer/oslo.i18n/usage.html -""" +''' -import oslo.i18n +import oslo_i18n -_translators = oslo.i18n.TranslatorFactory(domain='senlinclient') +_translators = oslo_i18n.TranslatorFactory(domain='senlinclient') # The primary translation function using the well-known name "_" _ = _translators.primary diff --git a/tox.ini b/tox.ini index e4570bcc..433e82ed 100644 --- a/tox.ini +++ b/tox.ini @@ -37,4 +37,4 @@ exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build max-complexity=20 [hacking] -import_exceptions = senlinclient.openstack.common._i18n +import_exceptions = senlinclient.common.i18n