diff options
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: |