summaryrefslogtreecommitdiff
path: root/designateclient/v2/cli/tlds.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-04-28 07:46:46 +0000
committerGerrit Code Review <review@openstack.org>2021-04-28 07:46:46 +0000
commit9bc517aa274d41572da87c0ad60ac4ae9f086f64 (patch)
tree9a0eea3a49aac54085951b983074faa031105942 /designateclient/v2/cli/tlds.py
parentf8353c5f03cdad448eb0ddade246fdf6ff92b494 (diff)
parent820f1e9af9317b91f3ee11a9ca22ea340119a125 (diff)
downloadpython-designateclient-4.3.0.tar.gz
Merge "Remove six and update lower-constraints appdirs"4.3.0
Diffstat (limited to 'designateclient/v2/cli/tlds.py')
-rw-r--r--designateclient/v2/cli/tlds.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/designateclient/v2/cli/tlds.py b/designateclient/v2/cli/tlds.py
index c41a477..de0537b 100644
--- a/designateclient/v2/cli/tlds.py
+++ b/designateclient/v2/cli/tlds.py
@@ -17,7 +17,6 @@
import logging
from osc_lib.command import command
-import six
from designateclient import utils
from designateclient.v2.cli import common
@@ -75,7 +74,7 @@ class ShowTLDCommand(command.ShowOne):
common.set_all_common_headers(client, parsed_args)
data = client.tlds.get(parsed_args.id)
_format_tld(data)
- return six.moves.zip(*sorted(six.iteritems(data)))
+ return zip(*sorted(data.items()))
class CreateTLDCommand(command.ShowOne):
@@ -96,7 +95,7 @@ class CreateTLDCommand(command.ShowOne):
common.set_all_common_headers(client, parsed_args)
data = client.tlds.create(parsed_args.name, parsed_args.description)
_format_tld(data)
- return six.moves.zip(*sorted(six.iteritems(data)))
+ return zip(*sorted(data.items()))
class SetTLDCommand(command.ShowOne):
@@ -131,7 +130,7 @@ class SetTLDCommand(command.ShowOne):
data = client.tlds.update(parsed_args.id, data)
_format_tld(data)
- return six.moves.zip(*sorted(six.iteritems(data)))
+ return zip(*sorted(data.items()))
class DeleteTLDCommand(command.Command):