Remove usage of six

Because this plugin now supports pyton 3 only, usage of six is no
longer necessary.

Change-Id: I00cd2c6f9fd466c2a6fe486be6ad6929e893c9b0
This commit is contained in:
Takashi Kajinami
2023-12-20 21:57:53 +09:00
parent b8ab3aa628
commit dc52290672
2 changed files with 3 additions and 3 deletions

View File

@@ -5,6 +5,5 @@
pbr>=2.0 # Apache-2.0
oslo.config>=6.0.0 # Apache-2.0
oslo.utils>=3.37.0 # Apache-2.0
six>=1.10.0 # MIT
tempest>=17.1.0 # Apache-2.0
gabbi>=1.30.0 # Apache-2.0

View File

@@ -15,7 +15,8 @@
import json
from six.moves.urllib import parse as urllib
from urllib import parse
from tempest import clients as tempest_clients
from tempest import config
from tempest.lib.common import rest_client
@@ -50,7 +51,7 @@ class AlarmingClient(rest_client.RestClient):
if marker:
uri_dict.update({'marker': marker})
if uri_dict:
uri += "?%s" % urllib.urlencode(uri_dict, doseq=True)
uri += "?%s" % parse.urlencode(uri_dict, doseq=True)
resp, body = self.get(uri)
self.expected_success(200, resp.status)
body = self.deserialize(body)