Cleanup i18n marker functions to match Oslo usage

Define marker functions as per usage in documentation.
http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: Ie431a63ab96aae066ec3e7346d8437d38ca4caa8
This commit is contained in:
Ronald Bradford 2016-07-11 16:49:03 -04:00
parent ff49045744
commit 3a9eb063be
2 changed files with 2 additions and 5 deletions

View File

@ -20,11 +20,10 @@ from osprofiler import notifier
from osprofiler import web
from trove.common import cfg
from trove.common import i18n
from trove.common.i18n import _LW
from trove import rpc
_LW = i18n._LW
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -26,7 +26,7 @@ from oslo_log import log as logging
from trove.backup.models import Backup
from trove.common import cfg
from trove.common import exception
from trove.common import i18n as i18n
from trove.common.i18n import _, _LE, _LI, _LW
import trove.common.instance as tr_instance
from trove.common.notification import StartNotification
from trove.common.remote import create_cinder_client
@ -49,8 +49,6 @@ from trove.module import views as module_views
from trove.quota.quota import run_with_quotas
from trove.taskmanager import api as task_api
(_, _LE, _LI, _LW) = (i18n._, i18n._LE, i18n._LI, i18n._LW)
CONF = cfg.CONF
LOG = logging.getLogger(__name__)