commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 20/20: python3: futurize misplaced __future


From: git
Subject: [Commit-gnuradio] [gnuradio] 20/20: python3: futurize misplaced __future__ import
Date: Sun, 25 Dec 2016 04:00:00 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch python3
in repository gnuradio.

commit 23af6b87ad049ad516ce213ad40b93042e89df02
Author: Douglas Anderson <address@hidden>
Date:   Fri Dec 23 15:32:32 2016 -0700

    python3: futurize misplaced __future__ import
---
 gr-digital/python/digital/generic_mod_demod.py       | 3 +--
 gr-fec/python/fec/polar/channel_construction.py      | 5 ++---
 gr-fec/python/fec/polar/channel_construction_awgn.py | 3 +--
 3 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/gr-digital/python/digital/generic_mod_demod.py 
b/gr-digital/python/digital/generic_mod_demod.py
index 402a1f0..bf88abc 100644
--- a/gr-digital/python/digital/generic_mod_demod.py
+++ b/gr-digital/python/digital/generic_mod_demod.py
@@ -20,14 +20,13 @@
 #
 
 from __future__ import print_function
+from __future__ import absolute_import
 
 # See gnuradio-examples/python/digital for examples
 
 """
 Generic modulation and demodulation.
 """
-from __future__ import absolute_import
-
 from gnuradio import gr
 from .modulation_utils import extract_kwargs_from_options_for_class
 from .utils import mod_codes
diff --git a/gr-fec/python/fec/polar/channel_construction.py 
b/gr-fec/python/fec/polar/channel_construction.py
index b60a92a..a22c643 100644
--- a/gr-fec/python/fec/polar/channel_construction.py
+++ b/gr-fec/python/fec/polar/channel_construction.py
@@ -18,14 +18,13 @@
 # Boston, MA 02110-1301, USA.
 #
 
-from __future__ import print_function
-
 '''
 [0] Erdal Arikan: 'Channel Polarization: A Method for Constructing 
Capacity-Achieving Codes for Symmetric Binary-Input Memoryless Channels', 2009
 foundational paper for polar codes.
 '''
-from __future__ import absolute_import
 
+from __future__ import print_function
+from __future__ import absolute_import
 
 from .channel_construction_bec import calculate_bec_channel_capacities
 from .channel_construction_bec import design_snr_to_bec_eta
diff --git a/gr-fec/python/fec/polar/channel_construction_awgn.py 
b/gr-fec/python/fec/polar/channel_construction_awgn.py
index c39adc6..3ea851c 100755
--- a/gr-fec/python/fec/polar/channel_construction_awgn.py
+++ b/gr-fec/python/fec/polar/channel_construction_awgn.py
@@ -19,6 +19,7 @@
 #
 
 from __future__ import print_function
+from __future__ import absolute_import
 
 '''
 Based on 2 papers:
@@ -28,8 +29,6 @@ for an in-depth description of a widely used algorithm for 
channel construction.
 [2] Harish Vangala, Emanuele Viterbo, Yi Hong: 'A Comparative Study of Polar 
Code Constructions for the AWGN Channel', 2015
 for an overview of different approaches
 '''
-from __future__ import absolute_import
-
 
 from scipy.optimize import fsolve
 from scipy.special import erfc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]