Fix oslo.i18n namespace error

This commit is contained in:
tengqm 2015-01-19 13:40:24 +08:00
parent 4cfec833db
commit e1139f262f
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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