Fix oslo.i18n namespace error
This commit is contained in:
parent
4cfec833db
commit
e1139f262f
@ -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
|
||||
|
2
tox.ini
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user