Browse Source

Prefix the drivers module with an underscore

To make it clear that the drivers API isn't public and stable.

See the discussion in:

  https://github.com/markmc/oslo-incubator/pull/3
changes/09/36409/1
Mark McLoughlin 9 years ago
parent
commit
ae6019ff82
  1. 2
      openstack/common/messaging/_drivers/__init__.py
  2. 0
      openstack/common/messaging/_drivers/base.py
  3. 2
      openstack/common/messaging/transport.py

2
openstack/common/messaging/drivers/__init__.py → openstack/common/messaging/_drivers/__init__.py

@ -17,7 +17,7 @@ NAMESPACE = 'openstack.common.messaging.drivers'
def _driver(module, name):
return '%s.%s:%s' % (NAMESPACE, module, name)
return 'openstack.common.messaging._drivers.%s:%s' % (module, name)
_RABBIT_DRIVER = _driver('rabbit', 'RabbitDriver')
_QPID_DRIVER = _driver('qpid', 'QpidDriver')

0
openstack/common/messaging/drivers/base.py → openstack/common/messaging/_drivers/base.py

2
openstack/common/messaging/transport.py

@ -21,7 +21,7 @@ import urlparse
from oslo.config import cfg
from stevedore import driver
from openstack.common.messaging import drivers
from openstack.common.messaging import _drivers as drivers
_transport_opts = [
cfg.StrOpt('transport_url',

Loading…
Cancel
Save