Remove useless global vars / import
This removes a few import and global variables that are not used through the code. That cleans things a little. Change-Id: I7b30bb11e8ad3c2df01ca2107eff2444feed3fe2
This commit is contained in:
parent
86b0750f3e
commit
97b9deca88
oslo/messaging
@ -33,7 +33,6 @@ from oslo.messaging.openstack.common import jsonutils
|
|||||||
# FIXME(markmc): remove this
|
# FIXME(markmc): remove this
|
||||||
_ = lambda s: s
|
_ = lambda s: s
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@ The MatchMaker classes should accept a Topic or Fanout exchange key and
|
|||||||
return keys for direct exchanges, per (approximate) AMQP parlance.
|
return keys for direct exchanges, per (approximate) AMQP parlance.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
||||||
from oslo.messaging._drivers import matchmaker as mm_common
|
from oslo.messaging._drivers import matchmaker as mm_common
|
||||||
@ -45,7 +43,6 @@ opt_group = cfg.OptGroup(name='matchmaker_redis',
|
|||||||
title='Options for Redis-based MatchMaker')
|
title='Options for Redis-based MatchMaker')
|
||||||
CONF.register_group(opt_group)
|
CONF.register_group(opt_group)
|
||||||
CONF.register_opts(matchmaker_redis_opts, opt_group)
|
CONF.register_opts(matchmaker_redis_opts, opt_group)
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class RedisExchange(mm_common.Exchange):
|
class RedisExchange(mm_common.Exchange):
|
||||||
|
@ -23,8 +23,6 @@ __all__ = [
|
|||||||
'RemoteError',
|
'RemoteError',
|
||||||
]
|
]
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
||||||
from oslo.messaging._drivers import base as driver_base
|
from oslo.messaging._drivers import base as driver_base
|
||||||
@ -38,8 +36,6 @@ _client_opts = [
|
|||||||
help='Seconds to wait for a response from a call'),
|
help='Seconds to wait for a response from a call'),
|
||||||
]
|
]
|
||||||
|
|
||||||
_LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class RemoteError(exceptions.MessagingException):
|
class RemoteError(exceptions.MessagingException):
|
||||||
|
|
||||||
|
@ -23,16 +23,12 @@ __all__ = [
|
|||||||
'UnsupportedVersion',
|
'UnsupportedVersion',
|
||||||
]
|
]
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from oslo.messaging import _utils as utils
|
from oslo.messaging import _utils as utils
|
||||||
from oslo.messaging import localcontext
|
from oslo.messaging import localcontext
|
||||||
from oslo.messaging import serializer as msg_serializer
|
from oslo.messaging import serializer as msg_serializer
|
||||||
from oslo.messaging import server as msg_server
|
from oslo.messaging import server as msg_server
|
||||||
from oslo.messaging import target
|
from oslo.messaging import target
|
||||||
|
|
||||||
_LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class RPCDispatcherError(msg_server.MessagingServerError):
|
class RPCDispatcherError(msg_server.MessagingServerError):
|
||||||
"A base class for all RPC dispatcher exceptions."
|
"A base class for all RPC dispatcher exceptions."
|
||||||
|
@ -23,17 +23,12 @@ __all__ = [
|
|||||||
'ServerListenError',
|
'ServerListenError',
|
||||||
]
|
]
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from stevedore import driver
|
from stevedore import driver
|
||||||
|
|
||||||
from oslo.messaging._drivers import base as driver_base
|
from oslo.messaging._drivers import base as driver_base
|
||||||
from oslo.messaging import exceptions
|
from oslo.messaging import exceptions
|
||||||
|
|
||||||
|
|
||||||
_LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class MessagingServerError(exceptions.MessagingException):
|
class MessagingServerError(exceptions.MessagingException):
|
||||||
"""Base class for all MessageHandlingServer exceptions."""
|
"""Base class for all MessageHandlingServer exceptions."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user