summaryrefslogtreecommitdiff
path: root/openstackclient/identity
diff options
context:
space:
mode:
authorsongwenping <songwenping@inspur.com>2020-10-06 14:26:27 +0800
committerroot <songwenping@inspur.com>2020-10-07 02:15:25 +0000
commitc2df9215e19752714e83fcad82c8ae3708f85d7a (patch)
treecfcf7e7041dcb4e4532a645d087140053bc5deca /openstackclient/identity
parent098a3fe2dea70eb16f13b717d62f51a4c890891d (diff)
downloadpython-openstackclient-c2df9215e19752714e83fcad82c8ae3708f85d7a.tar.gz
Remove usage of six
With python3.x, classes can use 'metaclass=' instead of 'six.add_metaclass', 'six.iteritems' and 'six.iterkeys' can be replaced by 'items' and 'keys', 'six.moves.urllib.parse' can be replaced by 'urllib.parse', 'six.StringIO' and 'six.moves.cStringIO' can be replaced by 'io.StringIO', 'six.text_type' and 'six.string_type' are just 'str'. Change-Id: I84848c0bf8ab3c36dd821141191e2725e4e3b58b
Diffstat (limited to 'openstackclient/identity')
-rw-r--r--openstackclient/identity/v3/access_rule.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/identity/v3/access_rule.py b/openstackclient/identity/v3/access_rule.py
index 65e78be1..ffda04f9 100644
--- a/openstackclient/identity/v3/access_rule.py
+++ b/openstackclient/identity/v3/access_rule.py
@@ -20,7 +20,6 @@ import logging
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
-import six
from openstackclient.i18n import _
from openstackclient.identity import common
@@ -115,4 +114,4 @@ class ShowAccessRule(command.ShowOne):
access_rule._info.pop('links', None)
- return zip(*sorted(six.iteritems(access_rule._info)))
+ return zip(*sorted(access_rule._info.items()))