summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/examples/mp-sched/affinity_set.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/examples/mp-sched/affinity_set.py')
-rw-r--r--[-rwxr-xr-x]gnuradio-runtime/examples/mp-sched/affinity_set.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/examples/mp-sched/affinity_set.py b/gnuradio-runtime/examples/mp-sched/affinity_set.py
index e6637b44bf..b717e1e506 100755..100644
--- a/gnuradio-runtime/examples/mp-sched/affinity_set.py
+++ b/gnuradio-runtime/examples/mp-sched/affinity_set.py
@@ -4,6 +4,8 @@
# 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
@@ -57,7 +59,7 @@ if __name__ == '__main__':
tb.start()
while(1):
- ret = raw_input('Enter a new Core # or Press Enter to quit: ')
+ ret = eval(input('Enter a new Core # or Press Enter to quit: '))
if(len(ret) == 0):
tb.stop()
sys.exit(0)
@@ -67,6 +69,6 @@ if __name__ == '__main__':
try:
n = int(ret)
except ValueError:
- print "Invalid number"
+ print("Invalid number")
else:
tb.filter_filt_0.set_processor_affinity([n,])