diff --git a/castellan/openstack/common/_i18n.py b/castellan/openstack/common/_i18n.py index cddbd5d..83f24d4 100644 --- a/castellan/openstack/common/_i18n.py +++ b/castellan/openstack/common/_i18n.py @@ -17,14 +17,14 @@ """ try: - import oslo.i18n + import oslo_i18n # NOTE(dhellmann): This reference to o-s-l-o will be replaced by the # application name when this module is synced into the separate # repository. It is OK to have more than one translation function # using the same domain, since there will still only be one message # catalog. - _translators = oslo.i18n.TranslatorFactory(domain='castellan') + _translators = oslo_i18n.TranslatorFactory(domain='castellan') # The primary translation function using the well-known name "_" _ = _translators.primary diff --git a/castellan/openstack/common/fileutils.py b/castellan/openstack/common/fileutils.py index 6cacf22..9097c35 100644 --- a/castellan/openstack/common/fileutils.py +++ b/castellan/openstack/common/fileutils.py @@ -20,7 +20,7 @@ import stat import tempfile -from oslo.utils import excutils +from oslo_utils import excutils LOG = logging.getLogger(__name__)