Remove the monkey patching of _ into the builtins

Previous _ was monkey patched into builtins whenever
certain modules were imported. This removes that and
simply imports it when it is needed.

Change-Id: I0af2c6d8a230e94440d655d13cab9107ac20d13c
This commit is contained in:
Alex Gaynor
2013-06-13 16:12:23 -07:00
parent 84b730b70f
commit cd9d8e45c6
303 changed files with 311 additions and 39 deletions

View File

@@ -19,6 +19,7 @@ from oslo.config import cfg
from nova import baserpc
from nova.conductor import manager
from nova.conductor import rpcapi
from nova.openstack.common.gettextutils import _
from nova.openstack.common import log as logging
from nova.openstack.common.rpc import common as rpc_common
from nova import utils

View File

@@ -34,6 +34,7 @@ from nova import notifications
from nova.objects import base as nova_object
from nova.objects import instance as instance_obj
from nova.openstack.common import excutils
from nova.openstack.common.gettextutils import _
from nova.openstack.common import jsonutils
from nova.openstack.common import log as logging
from nova.openstack.common.notifier import api as notifier

View File

@@ -20,6 +20,7 @@ from nova.compute import rpcapi as compute_rpcapi
from nova import db
from nova import exception
from nova.image import glance
from nova.openstack.common.gettextutils import _
from nova.openstack.common import log as logging
from nova import servicegroup