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: I1867ef3ab0fd13cc7fd0875b419e06c2d96963c2
This commit is contained in:
He Yongli 2014-02-12 16:02:37 +08:00
parent cf5088b55f
commit 6113ede198
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
Records interface. Records interface.
""" """
import urlparse import six.moves.urllib.parse as urlparse
from novaclient import base from novaclient import base
from rsdns.client.future import FutureResource from rsdns.client.future import FutureResource

View File

@ -16,7 +16,7 @@
# under the License. # under the License.
import urllib import urllib
import urlparse import six.moves.urllib.parse as urlparse
def url_quote(s): def url_quote(s):

View File

@ -21,7 +21,7 @@ import inspect
import jinja2 import jinja2
import sys import sys
import time import time
import urlparse import six.moves.urllib.parse as urlparse
import uuid import uuid
import os import os
import shutil import shutil

View File

@ -19,7 +19,7 @@
Network-related utilities and helper functions. Network-related utilities and helper functions.
""" """
import urlparse import six.moves.urllib.parse as urlparse
def parse_host_port(address, default_port=None): def parse_host_port(address, default_port=None):