diff options
author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2020-07-16 04:17:38 +0200 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-08-03 11:40:27 +0200 |
commit | a4b7a48f71a059c7410ee3e97aa682361cf22799 (patch) | |
tree | 9530900b05516aae06b6483781a5ebb818f322a0 /gnuradio-runtime/python/gnuradio/eng_notation.py | |
parent | f25a97122d74ce8217efcdec807b4c338627ec06 (diff) |
python: Remove unnecessary 'from __future__ import'
All of the removed `from __future__ import` were needed in older
versions of Python (mostly 2.5.x and below) but later became mandatory
in most versions of Python 3 hence are not necessary anymore.
More specifically, according to __future__.py[1]:
- unicode_literals is part of Python since versions 2.6.0 and 3.0.0;
- print_function is part of Python since versions 2.6.0 and 3.0.0;
- absolute_import is part of Python since versions 2.5.0 and 3.0.0;
- division is part of Python since versions 2.2.0 and 3.0.0;
Get rid of those unnecessary imports to slightly clean up the codebase.
[1] https://github.com/python/cpython/blob/master/Lib/__future__.py
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/eng_notation.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/eng_notation.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/gnuradio/eng_notation.py b/gnuradio-runtime/python/gnuradio/eng_notation.py index 9a3fc11807..951f79862a 100644 --- a/gnuradio-runtime/python/gnuradio/eng_notation.py +++ b/gnuradio-runtime/python/gnuradio/eng_notation.py @@ -9,7 +9,6 @@ """ Display numbers as strings using engineering notation. """ -from __future__ import unicode_literals import six |