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:
parent
cf5088b55f
commit
6113ede198
@ -17,7 +17,7 @@
|
||||
Records interface.
|
||||
"""
|
||||
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
from novaclient import base
|
||||
from rsdns.client.future import FutureResource
|
||||
|
@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
|
||||
import urllib
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
|
||||
def url_quote(s):
|
||||
|
@ -21,7 +21,7 @@ import inspect
|
||||
import jinja2
|
||||
import sys
|
||||
import time
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
import uuid
|
||||
import os
|
||||
import shutil
|
||||
|
@ -19,7 +19,7 @@
|
||||
Network-related utilities and helper functions.
|
||||
"""
|
||||
|
||||
import urlparse
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
|
||||
def parse_host_port(address, default_port=None):
|
||||
|
Loading…
Reference in New Issue
Block a user