Use py3kcompat.urlutils from oslo instead of six.urllib_parse

Six before 1.4.0 does not provide urllib_parse module, so we need
another solution.

Closes-bug: #1240827
Change-Id: I6b49b80b94028e01da0e3c4930f3e97cd32f73d0
This commit is contained in:
Ivan A. Melnikov
2013-10-17 11:42:46 +04:00
parent d382a20517
commit 15e0e00051

View File

@@ -17,10 +17,10 @@
# under the License.
import logging
from six.moves import urllib_parse as urlparse # noqa
from stevedore import driver
from taskflow import exceptions as exc
from taskflow.openstack.common.py3kcompat import urlutils
# NOTE(harlowja): this is the entrypoint namespace, not the module namespace.
@@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
def fetch(conf, namespace=BACKEND_NAMESPACE):
backend_name = urlparse.urlparse(conf['connection']).scheme
backend_name = urlutils.urlparse(conf['connection']).scheme
LOG.debug('Looking for %r backend driver in %r', backend_name, namespace)
try:
mgr = driver.DriverManager(namespace, backend_name,