From 678a7c2ad5db89e0634bfae2b0c9186f1ce63e89 Mon Sep 17 00:00:00 2001
From: Marcus Müller <mmueller@gnuradio.org>
Date: Sat, 10 Aug 2019 01:01:56 +0200
Subject: 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.
---
 gr-utils/python/modtool/cli/base.py | 2 --
 1 file changed, 2 deletions(-)

(limited to 'gr-utils/python/modtool/cli/base.py')

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)
-- 
cgit v1.2.3