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:
parent
dcf81c3b5a
commit
88510d037a
@ -19,7 +19,7 @@
|
||||
|
||||
import eventlet
|
||||
import requests
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
from oslo.config import cfg
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
import itertools
|
||||
import operator
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
from oslo.config import cfg
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
"""Storage backend management
|
||||
"""
|
||||
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
from oslo.config import cfg
|
||||
import six
|
||||
|
@ -25,7 +25,7 @@ import itertools
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
import happybase
|
||||
|
||||
|
@ -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, \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user