diff options
author | Clayton Smith <argilo@gmail.com> | 2020-10-03 12:34:28 -0400 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-10-05 09:36:11 +0200 |
commit | b360284d9b40799f1920929453e2db6e6384ae4e (patch) | |
tree | d0b6a4a9195c2cf62fd4a13c69deb52b6b14c631 /grc/core/params/param.py | |
parent | 5f618c67a9f8790337ca6b8b80575d02385e8ae9 (diff) |
grc: remove six
Diffstat (limited to 'grc/core/params/param.py')
-rw-r--r-- | grc/core/params/param.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/grc/core/params/param.py b/grc/core/params/param.py index 7e0f0ce462..841a290b5d 100644 --- a/grc/core/params/param.py +++ b/grc/core/params/param.py @@ -2,16 +2,13 @@ # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-2.0-or-later -# +# import ast import collections import textwrap -import six -from six.moves import range - from .. import Constants from ..base import Element from ..utils.descriptors import Evaluated, EvaluatedEnum, setup_names @@ -76,7 +73,7 @@ class Param(Element): options.attributes = collections.defaultdict(dict) padding = [''] * max(len(values), len(labels)) - attributes = {key: value + padding for key, value in six.iteritems(attributes)} + attributes = {key: value + padding for key, value in attributes.items()} for i, option in enumerate(values): # Test against repeated keys @@ -89,7 +86,7 @@ class Param(Element): label = str(option) # Store the option options[option] = label - options.attributes[option] = {attrib: values[i] for attrib, values in six.iteritems(attributes)} + options.attributes[option] = {attrib: values[i] for attrib, values in attributes.items()} default = next(iter(options)) if options else '' if not self.value: |