Merge "Clean up unnecessary import of urlparse module"

This commit is contained in:
Jenkins 2016-03-01 23:51:00 +00:00 committed by Gerrit Code Review
commit 77f2e98466
1 changed files with 1 additions and 6 deletions

View File

@ -20,11 +20,6 @@ import os
import six
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.common import utils
@ -525,7 +520,7 @@ class APIv1(api.BaseAPI):
self.create("", headers=headers)
def _find_account_id(self):
url_parts = urlparse(self.endpoint)
url_parts = urllib.parse.urlparse(self.endpoint)
return url_parts.path.split('/')[-1]
def _unset_properties(self, properties, header_tag):