Remove usage of six

Remove six-library Replace the following items with Python 3 style code.
- six.moves

Change-Id: Ied212eb0947c7441cc51193399185b4fb0f87271
This commit is contained in:
songwenping 2021-01-05 03:07:46 +00:00
parent fec2c93cdc
commit 99d6e00982
82 changed files with 141 additions and 91 deletions

View File

@ -14,8 +14,7 @@
# under the License. # under the License.
import datetime import datetime
from urllib import parse as urllib
from six.moves.urllib import parse as urllib
from tempest.api.compute import base from tempest.api.compute import base
from tempest.lib import decorators from tempest.lib import decorators

View File

@ -14,8 +14,7 @@
# under the License. # under the License.
import datetime import datetime
from urllib import parse as urllib
from six.moves.urllib import parse as urllib
from tempest.api.compute import base from tempest.api.compute import base
from tempest.lib import decorators from tempest.lib import decorators

View File

@ -14,9 +14,9 @@
# under the License. # under the License.
import struct import struct
import urllib.parse as urlparse
import six import six
import six.moves.urllib.parse as urlparse
import urllib3 import urllib3
from tempest.api.compute import base from tempest.api.compute import base

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urlparse
from oslo_log import log as logging from oslo_log import log as logging
from six.moves.urllib import parse as urlparse
import testtools import testtools
from tempest.api.compute import base from tempest.api.compute import base

View File

@ -14,8 +14,8 @@
# under the License. # under the License.
import time import time
from urllib import parse as urlparse
from six.moves.urllib import parse as urlparse
import testtools import testtools
from tempest.api.object_storage import base from tempest.api.object_storage import base

View File

@ -15,8 +15,7 @@
import hashlib import hashlib
import hmac import hmac
import time import time
from urllib import parse as urlparse
from six.moves.urllib import parse as urlparse
from tempest.api.object_storage import base from tempest.api.object_storage import base
from tempest.common import utils from tempest.common import utils

View File

@ -15,8 +15,7 @@
import hashlib import hashlib
import hmac import hmac
import time import time
from urllib import parse as urlparse
from six.moves.urllib import parse as urlparse
from tempest.api.object_storage import base from tempest.api.object_storage import base
from tempest.common import utils from tempest.common import utils

View File

@ -15,8 +15,7 @@
import hashlib import hashlib
import hmac import hmac
import time import time
from urllib import parse as urlparse
from six.moves.urllib import parse as urlparse
from tempest.api.object_storage import base from tempest.api.object_storage import base
from tempest.common import utils from tempest.common import utils

View File

@ -15,8 +15,7 @@
import hashlib import hashlib
import hmac import hmac
import time import time
from urllib import parse as urlparse
from six.moves.urllib import parse as urlparse
from tempest.api.object_storage import base from tempest.api.object_storage import base
from tempest.common import utils from tempest.common import utils

View File

@ -16,8 +16,8 @@
import operator import operator
import random import random
from urllib.parse import urlparse
from six.moves.urllib.parse import urlparse
from testtools import matchers from testtools import matchers
from tempest.api.volume import base from tempest.api.volume import base

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_log import log as logging from oslo_log import log as logging
from six.moves.urllib import parse as urllib
from tempest import clients from tempest import clients
from tempest.common import credentials_factory as credentials from tempest.common import credentials_factory as credentials

View File

@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import configparser
import os import os
import shutil import shutil
import sys import sys
@ -19,7 +20,6 @@ import sys
from cliff import command from cliff import command
from oslo_config import generator from oslo_config import generator
from oslo_log import log as logging from oslo_log import log as logging
from six import moves
from stestr import commands from stestr import commands
from tempest.cmd import workspace from tempest.cmd import workspace
@ -92,7 +92,7 @@ class TempestInit(command.Command):
stestr_conf_file.write(stestr_conf) stestr_conf_file.write(stestr_conf)
def get_configparser(self, conf_path): def get_configparser(self, conf_path):
config_parse = moves.configparser.ConfigParser() config_parse = configparser.ConfigParser()
config_parse.optionxform = str config_parse.optionxform = str
# get any existing values if a config file already exists # get any existing values if a config file already exists
if os.path.isfile(conf_path): if os.path.isfile(conf_path):

View File

@ -18,8 +18,7 @@ import socket
import ssl import ssl
import struct import struct
import textwrap import textwrap
from urllib import parse as urlparse
from six.moves.urllib import parse as urlparse
from oslo_log import log as logging from oslo_log import log as logging
from oslo_utils import excutils from oslo_utils import excutils

View File

@ -18,10 +18,10 @@ import abc
import copy import copy
import datetime import datetime
import re import re
from urllib import parse as urlparse
from oslo_log import log as logging from oslo_log import log as logging
import six import six
from six.moves.urllib import parse as urlparse
from tempest.lib import exceptions from tempest.lib import exceptions
from tempest.lib.services.identity.v2 import token_client as json_v2id from tempest.lib.services.identity.v2 import token_client as json_v2id

View File

@ -22,10 +22,10 @@ import inspect
import os import os
import sys import sys
import unittest import unittest
import urllib.parse as urlparse
import uuid import uuid
from oslo_utils import uuidutils from oslo_utils import uuidutils
import six.moves.urllib.parse as urlparse
DECORATOR_MODULE = 'decorators' DECORATOR_MODULE = 'decorators'
DECORATOR_NAME = 'idempotent_id' DECORATOR_NAME = 'idempotent_id'

View File

@ -18,13 +18,13 @@ import collections
import email.utils import email.utils
import re import re
import time import time
import urllib
import jsonschema import jsonschema
from oslo_log import log as logging from oslo_log import log as logging
from oslo_log import versionutils from oslo_log import versionutils
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
import six import six
from six.moves import urllib
from tempest.lib.common import http from tempest.lib.common import http
from tempest.lib.common import jsonschema_validator from tempest.lib.common import jsonschema_validator

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import agents as schema from tempest.lib.api_schema.response.compute.v2_1 import agents as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import baremetal_nodes \ from tempest.lib.api_schema.response.compute.v2_1 import baremetal_nodes \
as schema as schema

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import flavors as schema from tempest.lib.api_schema.response.compute.v2_1 import flavors as schema
from tempest.lib.api_schema.response.compute.v2_1 import flavors_access \ from tempest.lib.api_schema.response.compute.v2_1 import flavors_access \

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import floating_ips as schema from tempest.lib.api_schema.response.compute.v2_1 import floating_ips as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import floating_ips as schema from tempest.lib.api_schema.response.compute.v2_1 import floating_ips as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import hosts as schema from tempest.lib.api_schema.response.compute.v2_1 import hosts as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import images as schema from tempest.lib.api_schema.response.compute.v2_1 import images as schema
from tempest.lib.api_schema.response.compute.v2_45 import images as schemav245 from tempest.lib.api_schema.response.compute.v2_45 import images as schemav245

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import keypairs as schemav21 from tempest.lib.api_schema.response.compute.v2_1 import keypairs as schemav21
from tempest.lib.api_schema.response.compute.v2_2 import keypairs as schemav22 from tempest.lib.api_schema.response.compute.v2_2 import keypairs as schemav22

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import migrations as schema from tempest.lib.api_schema.response.compute.v2_1 import migrations as schema
from tempest.lib.api_schema.response.compute.v2_23 import migrations \ from tempest.lib.api_schema.response.compute.v2_23 import migrations \

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import quotas as schema from tempest.lib.api_schema.response.compute.v2_1 import quotas as schema
from tempest.lib.api_schema.response.compute.v2_36 import quotas as schemav236 from tempest.lib.api_schema.response.compute.v2_36 import quotas as schemav236

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import \ from tempest.lib.api_schema.response.compute.v2_1 import \
security_groups as schema security_groups as schema

View File

@ -16,9 +16,9 @@
# under the License. # under the License.
import copy import copy
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import \ from tempest.lib.api_schema.response.compute.v2_1 import \
security_groups as security_groups_schema security_groups as security_groups_schema

View File

@ -14,8 +14,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import services as schema from tempest.lib.api_schema.response.compute.v2_1 import services as schema
from tempest.lib.api_schema.response.compute.v2_11 import services \ from tempest.lib.api_schema.response.compute.v2_11 import services \

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import snapshots as schema from tempest.lib.api_schema.response.compute.v2_1 import snapshots as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import tenant_usages from tempest.lib.api_schema.response.compute.v2_1 import tenant_usages
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.compute.v2_1 import volumes as schema from tempest.lib.api_schema.response.compute.v2_1 import volumes as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -10,8 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -10,8 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -10,8 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -18,8 +18,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#application-credentials https://docs.openstack.org/api-ref/identity/v3/index.html#application-credentials
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -18,8 +18,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#application-credentials https://docs.openstack.org/api-ref/identity/v3/index.html#application-credentials
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -17,8 +17,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#credentials https://docs.openstack.org/api-ref/identity/v3/index.html#credentials
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -17,8 +17,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#service-catalog-and-endpoints https://docs.openstack.org/api-ref/identity/v3/index.html#service-catalog-and-endpoints
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -17,8 +17,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#groups https://docs.openstack.org/api-ref/identity/v3/index.html#groups
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -18,9 +18,9 @@ import hashlib
import hmac import hmac
import random import random
import time import time
from urllib import parse as urlparse
import six import six
from six.moves.urllib import parse as urlparse
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -17,8 +17,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#regions https://docs.openstack.org/api-ref/identity/v3/index.html#regions
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -17,8 +17,9 @@
https://docs.openstack.org/api-ref/identity/v3/index.html#service-catalog-and-endpoints https://docs.openstack.org/api-ref/identity/v3/index.html#service-catalog-and-endpoints
""" """
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -14,9 +14,9 @@
# under the License. # under the License.
import functools import functools
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib import exceptions as lib_exc from tempest.lib import exceptions as lib_exc

View File

@ -14,9 +14,9 @@
# under the License. # under the License.
import functools import functools
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib import exceptions as lib_exc from tempest.lib import exceptions as lib_exc

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -10,8 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,10 +13,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from xml.etree import ElementTree as etree from xml.etree import ElementTree as etree
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,11 +13,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from xml.etree import ElementTree as etree from xml.etree import ElementTree as etree
import debtcollector.moves import debtcollector.moves
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from six.moves import http_client as httplib from http import client as httplib
from six.moves.urllib import parse as urlparse from urllib import parse as urlparse
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib import exceptions from tempest.lib import exceptions

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib.services.placement import base_placement_client from tempest.lib.services.placement import base_placement_client

View File

@ -10,8 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib.services.placement import base_placement_client from tempest.lib.services.placement import base_placement_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils from oslo_serialization import jsonutils
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -10,8 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib import exceptions as lib_exc from tempest.lib import exceptions as lib_exc

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib import exceptions as lib_exc from tempest.lib import exceptions as lib_exc

View File

@ -13,9 +13,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
import six import six
from six.moves.urllib import parse as urllib
from tempest.lib.common import rest_client from tempest.lib.common import rest_client
from tempest.lib import exceptions as lib_exc from tempest.lib import exceptions as lib_exc

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import backups as schema from tempest.lib.api_schema.response.volume import backups as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import group_snapshots as schema from tempest.lib.api_schema.response.volume import group_snapshots as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import group_types as schema from tempest.lib.api_schema.response.volume import group_types as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import groups as schema from tempest.lib.api_schema.response.volume import groups as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import hosts as schema from tempest.lib.api_schema.response.volume import hosts as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils from oslo_serialization import jsonutils
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import quotas as schema from tempest.lib.api_schema.response.volume import quotas as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import services as schema from tempest.lib.api_schema.response.volume import services as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import snapshots as schema from tempest.lib.api_schema.response.volume import snapshots as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import transfers as schema from tempest.lib.api_schema.response.volume import transfers as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -13,8 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import volume_types as schema from tempest.lib.api_schema.response.volume import volume_types as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from six.moves.urllib.parse import urljoin from urllib.parse import urljoin
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json

View File

@ -13,9 +13,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
import six import six
from six.moves.urllib import parse as urllib
from tempest.lib.api_schema.response.volume import volumes as schema from tempest.lib.api_schema.response.volume import volumes as schema
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -15,9 +15,9 @@
import re import re
import time import time
from urllib import parse as urllib
from oslo_serialization import jsonutils as json from oslo_serialization import jsonutils as json
from six.moves.urllib import parse as urllib
from tempest import exceptions from tempest import exceptions
from tempest.lib.common import rest_client from tempest.lib.common import rest_client

View File

@ -15,7 +15,7 @@
from unittest import mock from unittest import mock
from six.moves.urllib import parse as urlparse from urllib import parse as urlparse
from tempest.common import compute from tempest.common import compute

View File

@ -20,9 +20,9 @@ import gzip
import os import os
import re import re
import sys import sys
import urllib.request as urlreq
import six import six
import six.moves.urllib.request as urlreq
import yaml import yaml
# DEVSTACK_GATE_GRENADE is either unset if grenade is not running # DEVSTACK_GATE_GRENADE is either unset if grenade is not running