From a3b222f52c90cf24ae4829d9c7aa3fd096b76c28 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 22 Jun 2012 11:33:31 -0400 Subject: Add missing gettextutils imports This change fixes a problem we found in the ceilometer test suite under Python 2.6. The name '_' is not defined globally, so nose reports import errors trying to scan the modules changed here. Change-Id: Ie94cc4effba457342e25f991cf481fc40a1d8cf3 --- openstack/common/rpc/common.py | 1 + openstack/common/rpc/impl_kombu.py | 1 + 2 files changed, 2 insertions(+) (limited to 'openstack/common/rpc') diff --git a/openstack/common/rpc/common.py b/openstack/common/rpc/common.py index a724ea2..1f421f3 100644 --- a/openstack/common/rpc/common.py +++ b/openstack/common/rpc/common.py @@ -26,6 +26,7 @@ from openstack.common import cfg from openstack.common import importutils from openstack.common import jsonutils from openstack.common import local +from openstack.common.gettextutils import _ LOG = logging.getLogger(__name__) diff --git a/openstack/common/rpc/impl_kombu.py b/openstack/common/rpc/impl_kombu.py index b78df37..66cf0a9 100644 --- a/openstack/common/rpc/impl_kombu.py +++ b/openstack/common/rpc/impl_kombu.py @@ -30,6 +30,7 @@ import kombu.entity import kombu.messaging from openstack.common import cfg +from openstack.common.gettextutils import _ from openstack.common.rpc import amqp as rpc_amqp from openstack.common.rpc import common as rpc_common -- cgit