diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-10 01:01:56 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-04 18:48:20 -0800 |
commit | 678a7c2ad5db89e0634bfae2b0c9186f1ce63e89 (patch) | |
tree | a86eaf74a5ea951cc113f2260e539d6ab1a9e421 /gr-utils/python/modtool/core/base.py | |
parent | 7d3c207e66f387151c9f0771e1bce3d735fbc507 (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/core/base.py')
-rw-r--r-- | gr-utils/python/modtool/core/base.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gr-utils/python/modtool/core/base.py b/gr-utils/python/modtool/core/base.py index 55b6f48076..d9f6a3b6e2 100644 --- a/gr-utils/python/modtool/core/base.py +++ b/gr-utils/python/modtool/core/base.py @@ -30,22 +30,7 @@ import glob import logging import itertools -try: - from types import SimpleNamespace -except: - # Py2.7 doesn't have SimpleNamespace, soooo use what Py3 docs say is roughly equivalent - class SimpleNamespace: - def __init__(self, **kwargs): - self.__dict__.update(kwargs) - - def __repr__(self): - keys = sorted(self.__dict__) - items = ("{}={!r}".format(k, self.__dict__[k]) for k in keys) - return "{}({})".format(type(self).__name__, ", ".join(items)) - - def __eq__(self, other): - return self.__dict__ == other.__dict__ - +from types import SimpleNamespace from gnuradio import gr from ..tools import get_modname, SCMRepoFactory |