Keep py3.X compatibility for urllib
Use six.moves.urllib.parse instead of urllib Change-Id: Ia728005ee0af307a7df042f23f0276f922926465 Closes-Bug: #1280105
This commit is contained in:
parent
261c088eac
commit
8ed42da06b
|
@ -30,10 +30,7 @@ from troveclient import exceptions
|
||||||
from troveclient.openstack.common.apiclient import client
|
from troveclient.openstack.common.apiclient import client
|
||||||
from troveclient import service_catalog
|
from troveclient import service_catalog
|
||||||
|
|
||||||
try:
|
import six.moves.urllib.parse as urlparse
|
||||||
import urlparse
|
|
||||||
except ImportError:
|
|
||||||
import urllib.parse as urlparse
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import eventlet as sleep_lib
|
import eventlet as sleep_lib
|
||||||
|
|
Loading…
Reference in New Issue