summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/examples
diff options
context:
space:
mode:
authorOleksandr Kravchuk <open.source@oleksandr-kravchuk.com>2020-07-16 04:17:38 +0200
committerMartin Braun <martin@gnuradio.org>2020-08-03 11:40:27 +0200
commita4b7a48f71a059c7410ee3e97aa682361cf22799 (patch)
tree9530900b05516aae06b6483781a5ebb818f322a0 /gnuradio-runtime/examples
parentf25a97122d74ce8217efcdec807b4c338627ec06 (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/examples')
-rw-r--r--gnuradio-runtime/examples/mp-sched/affinity_set.py2
-rw-r--r--gnuradio-runtime/examples/mp-sched/plot_flops.py1
-rw-r--r--gnuradio-runtime/examples/mp-sched/run_synthetic.py2
-rw-r--r--gnuradio-runtime/examples/mp-sched/synthetic.py3
-rw-r--r--gnuradio-runtime/examples/mp-sched/wfm_rcv_pll_to_wav.py2
-rw-r--r--gnuradio-runtime/examples/network/audio_sink.py1
-rw-r--r--gnuradio-runtime/examples/network/audio_source.py1
-rw-r--r--gnuradio-runtime/examples/network/dial_tone_sink.py1
-rw-r--r--gnuradio-runtime/examples/network/dial_tone_source.py1
-rw-r--r--gnuradio-runtime/examples/network/vector_sink.py1
-rw-r--r--gnuradio-runtime/examples/network/vector_source.py1
-rw-r--r--gnuradio-runtime/examples/volk_benchmark/volk_math.py2
-rw-r--r--gnuradio-runtime/examples/volk_benchmark/volk_plot.py2
-rw-r--r--gnuradio-runtime/examples/volk_benchmark/volk_test_funcs.py2
-rw-r--r--gnuradio-runtime/examples/volk_benchmark/volk_types.py2
15 files changed, 0 insertions, 24 deletions
diff --git a/gnuradio-runtime/examples/mp-sched/affinity_set.py b/gnuradio-runtime/examples/mp-sched/affinity_set.py
index 71d227fb27..4516b96f54 100644
--- a/gnuradio-runtime/examples/mp-sched/affinity_set.py
+++ b/gnuradio-runtime/examples/mp-sched/affinity_set.py
@@ -4,8 +4,6 @@
# Title: Affinity Set Test
##################################################
-from __future__ import print_function
-from __future__ import unicode_literals
from gnuradio import eng_notation
from gnuradio import gr
from gnuradio import blocks
diff --git a/gnuradio-runtime/examples/mp-sched/plot_flops.py b/gnuradio-runtime/examples/mp-sched/plot_flops.py
index d65dd440be..918197f9f4 100644
--- a/gnuradio-runtime/examples/mp-sched/plot_flops.py
+++ b/gnuradio-runtime/examples/mp-sched/plot_flops.py
@@ -12,7 +12,6 @@
Reads output from run_synthetic.py and runs gnuplot showing
GFLOPS as f(npipes, nstages)
"""
-from __future__ import unicode_literals
import re
import sys
diff --git a/gnuradio-runtime/examples/mp-sched/run_synthetic.py b/gnuradio-runtime/examples/mp-sched/run_synthetic.py
index 562af46118..35e7f1820d 100644
--- a/gnuradio-runtime/examples/mp-sched/run_synthetic.py
+++ b/gnuradio-runtime/examples/mp-sched/run_synthetic.py
@@ -11,8 +11,6 @@
"""
Run synthetic.py for npipes in [1,16], nstages in [1,16]
"""
-from __future__ import division
-from __future__ import unicode_literals
import re
import sys
diff --git a/gnuradio-runtime/examples/mp-sched/synthetic.py b/gnuradio-runtime/examples/mp-sched/synthetic.py
index 9add53c83b..4d6f3b9a22 100644
--- a/gnuradio-runtime/examples/mp-sched/synthetic.py
+++ b/gnuradio-runtime/examples/mp-sched/synthetic.py
@@ -8,9 +8,6 @@
#
#
-from __future__ import print_function
-from __future__ import division
-from __future__ import unicode_literals
from gnuradio import gr, eng_notation
from gnuradio import blocks, filter
from gnuradio.eng_arg import eng_float, intx
diff --git a/gnuradio-runtime/examples/mp-sched/wfm_rcv_pll_to_wav.py b/gnuradio-runtime/examples/mp-sched/wfm_rcv_pll_to_wav.py
index 5c2f7409d6..48977b1a8b 100644
--- a/gnuradio-runtime/examples/mp-sched/wfm_rcv_pll_to_wav.py
+++ b/gnuradio-runtime/examples/mp-sched/wfm_rcv_pll_to_wav.py
@@ -8,8 +8,6 @@
#
#
-from __future__ import division
-from __future__ import unicode_literals
from gnuradio import gr, gru, eng_notation, filter
from gnuradio import audio
from gnuradio import analog
diff --git a/gnuradio-runtime/examples/network/audio_sink.py b/gnuradio-runtime/examples/network/audio_sink.py
index 5c67a1e103..68cc2ae95d 100644
--- a/gnuradio-runtime/examples/network/audio_sink.py
+++ b/gnuradio-runtime/examples/network/audio_sink.py
@@ -8,7 +8,6 @@
#
#
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
from argparse import ArgumentParser
diff --git a/gnuradio-runtime/examples/network/audio_source.py b/gnuradio-runtime/examples/network/audio_source.py
index c74ee99bbf..70430025f2 100644
--- a/gnuradio-runtime/examples/network/audio_source.py
+++ b/gnuradio-runtime/examples/network/audio_source.py
@@ -8,7 +8,6 @@
#
#
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
from argparse import ArgumentParser
diff --git a/gnuradio-runtime/examples/network/dial_tone_sink.py b/gnuradio-runtime/examples/network/dial_tone_sink.py
index 91d5cc7816..8fff674d23 100644
--- a/gnuradio-runtime/examples/network/dial_tone_sink.py
+++ b/gnuradio-runtime/examples/network/dial_tone_sink.py
@@ -8,7 +8,6 @@
#
#
-from __future__ import unicode_literals
from gnuradio import gr, audio
from gnuradio import blocks
from argparse import ArgumentParser
diff --git a/gnuradio-runtime/examples/network/dial_tone_source.py b/gnuradio-runtime/examples/network/dial_tone_source.py
index 54bf428aea..16e5fa34a8 100644
--- a/gnuradio-runtime/examples/network/dial_tone_source.py
+++ b/gnuradio-runtime/examples/network/dial_tone_source.py
@@ -8,7 +8,6 @@
#
#
-from __future__ import unicode_literals
from gnuradio import gr
from argparse import ArgumentParser
import sys
diff --git a/gnuradio-runtime/examples/network/vector_sink.py b/gnuradio-runtime/examples/network/vector_sink.py
index f3bd005107..619303d7ec 100644
--- a/gnuradio-runtime/examples/network/vector_sink.py
+++ b/gnuradio-runtime/examples/network/vector_sink.py
@@ -8,7 +8,6 @@
#
#
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
from gnuradio.eng_arg import eng_float, intx
diff --git a/gnuradio-runtime/examples/network/vector_source.py b/gnuradio-runtime/examples/network/vector_source.py
index 513823c3b7..0a43b4978b 100644
--- a/gnuradio-runtime/examples/network/vector_source.py
+++ b/gnuradio-runtime/examples/network/vector_source.py
@@ -8,7 +8,6 @@
#
#
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
from argparse import ArgumentParser
diff --git a/gnuradio-runtime/examples/volk_benchmark/volk_math.py b/gnuradio-runtime/examples/volk_benchmark/volk_math.py
index f4d81eafdd..9c06c6f768 100644
--- a/gnuradio-runtime/examples/volk_benchmark/volk_math.py
+++ b/gnuradio-runtime/examples/volk_benchmark/volk_math.py
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-from __future__ import print_function
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
import argparse
diff --git a/gnuradio-runtime/examples/volk_benchmark/volk_plot.py b/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
index b78f9d0deb..fc6125be72 100644
--- a/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
+++ b/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-from __future__ import division
-from __future__ import unicode_literals
import sys, math
import argparse
from volk_test_funcs import (create_connection, list_tables, get_results,
diff --git a/gnuradio-runtime/examples/volk_benchmark/volk_test_funcs.py b/gnuradio-runtime/examples/volk_benchmark/volk_test_funcs.py
index bce09400b6..1e93522e97 100644
--- a/gnuradio-runtime/examples/volk_benchmark/volk_test_funcs.py
+++ b/gnuradio-runtime/examples/volk_benchmark/volk_test_funcs.py
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-from __future__ import print_function
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
import math, sys, os, time
diff --git a/gnuradio-runtime/examples/volk_benchmark/volk_types.py b/gnuradio-runtime/examples/volk_benchmark/volk_types.py
index 647735f22d..c77b95a078 100644
--- a/gnuradio-runtime/examples/volk_benchmark/volk_types.py
+++ b/gnuradio-runtime/examples/volk_benchmark/volk_types.py
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-from __future__ import print_function
-from __future__ import unicode_literals
from gnuradio import gr
from gnuradio import blocks
import argparse