summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/cli/base.py
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-08-10 01:01:56 +0200
committerMartin Braun <martin.braun@ettus.com>2020-01-04 18:48:20 -0800
commit678a7c2ad5db89e0634bfae2b0c9186f1ce63e89 (patch)
treea86eaf74a5ea951cc113f2260e539d6ab1a9e421 /gr-utils/python/modtool/cli/base.py
parent7d3c207e66f387151c9f0771e1bce3d735fbc507 (diff)
Disable Python 2k
- Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
Diffstat (limited to 'gr-utils/python/modtool/cli/base.py')
-rw-r--r--gr-utils/python/modtool/cli/base.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/cli/base.py b/gr-utils/python/modtool/cli/base.py
index 5fa2b8b7b4..d0259372ff 100644
--- a/gr-utils/python/modtool/cli/base.py
+++ b/gr-utils/python/modtool/cli/base.py
@@ -73,8 +73,6 @@ class CommandCLI(click.Group):
command is the priority over the same external plug-in command.
"""
try:
- if sys.version_info[0] == 2:
- cmd_name = cmd_name.encode('ascii', 'replace')
mod = import_module('gnuradio.modtool.cli.' + cmd_name)
except ImportError:
return self.commands.get(cmd_name)