To keep Python 3.x compatibility, use six.moves.urllib.parse to
replace urlparse.
Closes-Bug: #
1279611
Change-Id: I712035926f449e1bc5ab1fe85927369b826cb9cc
import hmac
import os
import socket
-import urlparse
import eventlet
import httplib2
from neutronclient.v2_0 import client
from oslo.config import cfg
+import six.moves.urllib.parse as urlparse
import webob
from neutron.agent.common import config as agent_conf
import httplib
import socket
-import urlparse
+
import eventlet
import httplib2
from oslo.config import cfg
+import six.moves.urllib.parse as urlparse
import webob
from neutron.agent.linux import daemon
# See the License for the specific language governing permissions and
# limitations under the License.
-import urlparse
-
from oslo.config import cfg
import routes as routes_mapper
+import six.moves.urllib.parse as urlparse
import webob
import webob.dec
import webob.exc
import httplib
import logging
import time
-import urlparse
import six
+import six.moves.urllib.parse as urlparse
from neutron.openstack.common import excutils
from neutron.plugins.nicira.api_client.common import (
# under the License.
import json
-import urlparse
+
+import six.moves.urllib.parse as urlparse
from neutron.openstack.common import log as logging
from neutron.openstack.common import uuidutils
# under the License.
import os
-import urlparse
import mock
from oslo.config import cfg
+import six.moves.urllib.parse as urlparse
import webob
from webob import exc
import webtest