Merge "Remove usage of six"

This commit is contained in:
Zuul 2024-01-22 15:12:19 +00:00 committed by Gerrit Code Review
commit 54d4d23a18
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)