Consume _ from local _1i8n
OpenStack discourages using _ from the python builtins namespace. Instead it is encourage to consume _ provided by per-repo _i18n. Change-Id: I9db859ed6d595a621f2b4d09992d2312453a0b75
This commit is contained in:
parent
4f9b24130c
commit
d7208283e6
@ -22,6 +22,7 @@ from neutron.db import models_v2
|
||||
from neutron import manager
|
||||
from neutron.plugins.common import constants as nconstants
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
from neutron_vpnaas.extensions import vpnaas
|
||||
from neutron_vpnaas.services.vpn.common import constants
|
||||
|
||||
|
@ -24,6 +24,8 @@ from neutron.common import exceptions as nexception
|
||||
from neutron.plugins.common import constants as nconstants
|
||||
from neutron.services import service_base
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
|
||||
|
||||
class VPNServiceNotFound(nexception.NotFound):
|
||||
message = _("VPNService %(vpnservice_id)s could not be found")
|
||||
|
@ -18,6 +18,7 @@ from neutron.agent.l3 import agent as l3_agent
|
||||
from neutron.agent import l3_agent as entry
|
||||
from oslo_config import cfg
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
from neutron_vpnaas.services.vpn import vpn_service
|
||||
|
||||
vpn_agent_opts = [
|
||||
|
@ -25,7 +25,7 @@ from oslo_log import log as logging
|
||||
from oslo_rootwrap import wrapper
|
||||
import six
|
||||
|
||||
from neutron_vpnaas._i18n import _LE, _LI
|
||||
from neutron_vpnaas._i18n import _, _LE, _LI
|
||||
|
||||
if six.PY3:
|
||||
import configparser as ConfigParser
|
||||
|
@ -26,7 +26,7 @@ from oslo_log import log as logging
|
||||
import oslo_messaging
|
||||
from oslo_service import loopingcall
|
||||
|
||||
from neutron_vpnaas._i18n import _LE, _LI, _LW
|
||||
from neutron_vpnaas._i18n import _, _LE, _LI, _LW
|
||||
from neutron_vpnaas.services.vpn.common import topics
|
||||
from neutron_vpnaas.services.vpn import device_drivers
|
||||
from neutron_vpnaas.services.vpn.device_drivers import (
|
||||
|
@ -36,7 +36,7 @@ from oslo_log import log as logging
|
||||
import oslo_messaging
|
||||
from oslo_service import loopingcall
|
||||
|
||||
from neutron_vpnaas._i18n import _LE, _LI, _LW
|
||||
from neutron_vpnaas._i18n import _, _LE, _LI, _LW
|
||||
from neutron_vpnaas.extensions import vpnaas
|
||||
from neutron_vpnaas.services.vpn.common import topics
|
||||
from neutron_vpnaas.services.vpn import device_drivers
|
||||
|
@ -20,6 +20,8 @@ from oslo_config import cfg
|
||||
|
||||
from neutron.agent.linux import ip_lib
|
||||
from neutron.plugins.common import constants
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
from neutron_vpnaas.services.vpn.device_drivers import ipsec
|
||||
|
||||
TEMPLATE_PATH = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -28,7 +28,7 @@ from oslo_service import loopingcall
|
||||
from oslo_service import periodic_task
|
||||
import six
|
||||
|
||||
from neutron_vpnaas._i18n import _LE, _LW
|
||||
from neutron_vpnaas._i18n import _, _LE, _LW
|
||||
from neutron_vpnaas.services.vpn.common import topics
|
||||
from neutron_vpnaas.services.vpn import device_drivers
|
||||
|
||||
|
@ -19,7 +19,7 @@ from oslo_log import log as logging
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.orm import exc as sql_exc
|
||||
|
||||
from neutron_vpnaas._i18n import _LI
|
||||
from neutron_vpnaas._i18n import _, _LI
|
||||
from neutron_vpnaas.db.vpn import vpn_models
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -17,6 +17,7 @@ from netaddr import core as net_exc
|
||||
from neutron.common import exceptions
|
||||
from oslo_log import log as logging
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
from neutron_vpnaas.db.vpn import vpn_validator
|
||||
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
from neutron.common import exceptions
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
from neutron_vpnaas.db.vpn import vpn_validator
|
||||
|
||||
|
||||
|
@ -18,6 +18,7 @@ from networking_brocade.vyatta.common import l3_agent as vyatta_l3
|
||||
from neutron.agent import l3_agent as entry
|
||||
from oslo_config import cfg
|
||||
|
||||
from neutron_vpnaas._i18n import _
|
||||
from neutron_vpnaas.services.vpn import vyatta_vpn_service
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user