summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2019-09-29 20:14:36 +0200
committerRuben Undheim <ruben.undheim@gmail.com>2019-09-29 20:14:36 +0200
commit1d59a920260bc379d0e89a27d47105c934a37182 (patch)
tree29a19ca43bf3e592d265d0aa723c1fecb02bc965
parent9d816b5a0a0525335f84d2590eeb4f881473b7c2 (diff)
Replace raw_input with input
-rw-r--r--debian/patches/0003-Replace-raw_input-with-input.patch35
-rw-r--r--debian/patches/series1
2 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/0003-Replace-raw_input-with-input.patch b/debian/patches/0003-Replace-raw_input-with-input.patch
new file mode 100644
index 0000000..66a2c2f
--- /dev/null
+++ b/debian/patches/0003-Replace-raw_input-with-input.patch
@@ -0,0 +1,35 @@
+From: Ruben Undheim <ruben.undheim@gmail.com>
+Date: Sun, 29 Sep 2019 20:14:26 +0200
+Subject: Replace raw_input with input
+
+---
+ apps/sdr-zmq-daemon | 2 +-
+ python/app/receive_dabplus.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/apps/sdr-zmq-daemon b/apps/sdr-zmq-daemon
+index 2ae1506..6ddfc10 100755
+--- a/apps/sdr-zmq-daemon
++++ b/apps/sdr-zmq-daemon
+@@ -99,7 +99,7 @@ def main(top_block_cls=top_block, options=None):
+ tb = top_block_cls()
+ tb.start()
+ try:
+- raw_input('Press Enter to quit: ')
++ input('Press Enter to quit: ')
+ except EOFError:
+ pass
+ tb.stop()
+diff --git a/python/app/receive_dabplus.py b/python/app/receive_dabplus.py
+index 7ad031a..14fb441 100755
+--- a/python/app/receive_dabplus.py
++++ b/python/app/receive_dabplus.py
+@@ -89,7 +89,7 @@ def receive_dabplus(frequency=220.352e6, rf_gain=25, if_gain=0, bb_gain=0, ppm=8
+
+
+ fg.start()
+- raw_input("Running..")
++ input("Running..")
+ #new = grdab.dabplus_audio_decoder_ff(grdab.parameters.dab_parameters(mode=1, sample_rate=samp_rate, verbose=False), 64, 304, 64, 1, True)
+ #newaudio = audio.sink(44100, '', True)
+ fg.stop()
diff --git a/debian/patches/series b/debian/patches/series
index e2cd4ee..cb8f5f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Fix-library-version.patch
0002-sdr-zmq-daemon-is-also-Python-3.patch
+0003-Replace-raw_input-with-input.patch