diff options
author | kairat_kushaev <kkushaev@mirantis.com> | 2015-09-29 14:39:41 +0300 |
---|---|---|
committer | kairat_kushaev <kkushaev@mirantis.com> | 2015-12-07 18:20:43 +0300 |
commit | c27c25f7798738cda2c8b3f6dc80ebeb98aea7ef (patch) | |
tree | 33fb7ed3f573aeb2b936528a351069752238d45e /glance/domain/__init__.py | |
parent | a33b20b92b13c6e5d7a57fa16a96a62e8eabc685 (diff) | |
download | glance-c27c25f7798738cda2c8b3f6dc80ebeb98aea7ef.tar.gz |
Import i18n functions directly
Import i18n functions from module directly and do not use
global module variables like _ = i18n._. It makes code shorter
and cleaner. It also to detect cases when these functions are not
used in module.
Change-Id: Iaa593ac1f2dd15cbcad049bef6ba68f1cfa610da
Diffstat (limited to 'glance/domain/__init__.py')
-rw-r--r-- | glance/domain/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/glance/domain/__init__.py b/glance/domain/__init__.py index 5cc8321e2..e6fa28c65 100644 --- a/glance/domain/__init__.py +++ b/glance/domain/__init__.py @@ -26,12 +26,8 @@ from oslo_utils import timeutils import six from glance.common import exception -from glance import i18n +from glance.i18n import _, _LE, _LI, _LW -_ = i18n._ -_LE = i18n._LE -_LI = i18n._LI -_LW = i18n._LW LOG = logging.getLogger(__name__) CONF = cfg.CONF CONF.import_opt('task_executor', 'glance.common.config', group='task') |