Merge "Clean up unnecessary import of urlparse module"
This commit is contained in:
commit
77f2e98466
@ -20,11 +20,6 @@ import os
|
|||||||
import six
|
import six
|
||||||
from six.moves import urllib
|
from six.moves import urllib
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib.parse import urlparse # noqa
|
|
||||||
except ImportError:
|
|
||||||
from urlparse import urlparse # noqa
|
|
||||||
|
|
||||||
from openstackclient.api import api
|
from openstackclient.api import api
|
||||||
from openstackclient.common import utils
|
from openstackclient.common import utils
|
||||||
|
|
||||||
@ -525,7 +520,7 @@ class APIv1(api.BaseAPI):
|
|||||||
self.create("", headers=headers)
|
self.create("", headers=headers)
|
||||||
|
|
||||||
def _find_account_id(self):
|
def _find_account_id(self):
|
||||||
url_parts = urlparse(self.endpoint)
|
url_parts = urllib.parse.urlparse(self.endpoint)
|
||||||
return url_parts.path.split('/')[-1]
|
return url_parts.path.split('/')[-1]
|
||||||
|
|
||||||
def _unset_properties(self, properties, header_tag):
|
def _unset_properties(self, properties, header_tag):
|
||||||
|
Loading…
Reference in New Issue
Block a user