Use six.moves.urllib.parse instead of urlparse

To keep Python 3.x compatibility, use six.moves.urllib.parse to
replace urlparse.

Closes-Bug: #1279611
Change-Id: I712035926f449e1bc5ab1fe85927369b826cb9cc
This commit is contained in:
He Yongli 2014-02-12 12:44:45 +08:00
parent 4d63a13681
commit a060b6c0b7
6 changed files with 8 additions and 7 deletions

View File

@ -20,12 +20,12 @@ import hashlib
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

View File

@ -18,11 +18,12 @@
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

View File

@ -13,10 +13,9 @@
# 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

View File

@ -24,9 +24,9 @@ import copy
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 (

View File

@ -15,7 +15,8 @@
# 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

View File

@ -16,10 +16,10 @@
# 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