From a4b7a48f71a059c7410ee3e97aa682361cf22799 Mon Sep 17 00:00:00 2001
From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Date: Thu, 16 Jul 2020 04:17:38 +0200
Subject: 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
---
 gr-fft/python/fft/__init__.py    | 2 --
 gr-fft/python/fft/logpwrfft.py   | 2 --
 gr-fft/python/fft/qa_fft.py      | 1 -
 gr-fft/python/fft/qa_goertzel.py | 1 -
 4 files changed, 6 deletions(-)

(limited to 'gr-fft/python')

diff --git a/gr-fft/python/fft/__init__.py b/gr-fft/python/fft/__init__.py
index 09b157cf66..d4d2c964cb 100644
--- a/gr-fft/python/fft/__init__.py
+++ b/gr-fft/python/fft/__init__.py
@@ -11,8 +11,6 @@
 Fourier-transform blocks and related functions.
 '''
 
-from __future__ import absolute_import
-from __future__ import unicode_literals
 
 import os
 
diff --git a/gr-fft/python/fft/logpwrfft.py b/gr-fft/python/fft/logpwrfft.py
index 8ae76489dc..e14ef82ba5 100644
--- a/gr-fft/python/fft/logpwrfft.py
+++ b/gr-fft/python/fft/logpwrfft.py
@@ -1,5 +1,3 @@
-from __future__ import division
-from __future__ import unicode_literals
 #
 # Copyright 2008 Free Software Foundation, Inc.
 #
diff --git a/gr-fft/python/fft/qa_fft.py b/gr-fft/python/fft/qa_fft.py
index b7d4b1e6d7..1e762b05be 100644
--- a/gr-fft/python/fft/qa_fft.py
+++ b/gr-fft/python/fft/qa_fft.py
@@ -8,7 +8,6 @@
 #
 #
 
-from __future__ import division
 
 from gnuradio import gr, gr_unittest, fft, blocks
 
diff --git a/gr-fft/python/fft/qa_goertzel.py b/gr-fft/python/fft/qa_goertzel.py
index ba06bc5767..7de8bd6de1 100644
--- a/gr-fft/python/fft/qa_goertzel.py
+++ b/gr-fft/python/fft/qa_goertzel.py
@@ -8,7 +8,6 @@
 #
 #
 
-from __future__ import division
 
 from math import pi, cos
 
-- 
cgit v1.2.3