Use six.moves.urllib.parse instead of urlparse

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

Change-Id: I81333ca4d6ed88b2d491657170f526cbe9671d1f
This commit is contained in:
Fengqian Gao 2014-02-11 16:32:32 +08:00
parent dcf81c3b5a
commit 88510d037a
8 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@
import eventlet
import requests
import urlparse
import six.moves.urllib.parse as urlparse
from oslo.config import cfg

View File

@ -19,7 +19,7 @@
"""
from __future__ import absolute_import
import urlparse
import six.moves.urllib.parse as urlparse
from keystoneclient import exceptions
from oslo.config import cfg

View File

@ -18,7 +18,7 @@
import logging
import logging.handlers
import urlparse
import six.moves.urllib.parse as urlparse
from ceilometer.openstack.common.gettextutils import _ # noqa
from ceilometer.openstack.common import log

View File

@ -21,7 +21,7 @@
import itertools
import operator
import urlparse
import six.moves.urllib.parse as urlparse
from oslo.config import cfg

View File

@ -18,7 +18,7 @@
"""Storage backend management
"""
import urlparse
import six.moves.urllib.parse as urlparse
from oslo.config import cfg
import six

View File

@ -25,7 +25,7 @@ import itertools
import json
import os
import re
import urlparse
import six.moves.urllib.parse as urlparse
import happybase

View File

@ -19,7 +19,7 @@ SQLAlchemy models for Ceilometer data.
"""
import json
import urlparse
import six.moves.urllib.parse as urlparse
from oslo.config import cfg
from sqlalchemy import Column, Integer, String, Table, ForeignKey, \

View File

@ -15,7 +15,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import urlparse
import six.moves.urllib.parse as urlparse
import mock
import requests