commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/08: examples: affinity_set use ArgParse


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/08: examples: affinity_set use ArgParse
Date: Wed, 11 May 2016 17:41:08 +0000 (UTC)

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

jcorgan pushed a commit to branch next
in repository gnuradio.

commit 55ceb2e5c1356f2438908d0e28617cd748291fe7
Author: Jiří Pinkava <address@hidden>
Date:   Sat Oct 10 20:35:45 2015 +0200

    examples: affinity_set use ArgParse
---
 gnuradio-runtime/examples/mp-sched/affinity_set.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnuradio-runtime/examples/mp-sched/affinity_set.py 
b/gnuradio-runtime/examples/mp-sched/affinity_set.py
index 15d2233..e6637b4 100755
--- a/gnuradio-runtime/examples/mp-sched/affinity_set.py
+++ b/gnuradio-runtime/examples/mp-sched/affinity_set.py
@@ -8,9 +8,9 @@ from gnuradio import eng_notation
 from gnuradio import gr
 from gnuradio import blocks
 from gnuradio import filter
-from gnuradio.eng_option import eng_option
+from gnuradio.eng_arg import eng_arg
 from gnuradio.filter import firdes
-from optparse import OptionParser
+from argparse import ArgumentParser
 import sys
 
 class affinity_set(gr.top_block):
@@ -51,8 +51,8 @@ class affinity_set(gr.top_block):
         self.samp_rate = samp_rate
 
 if __name__ == '__main__':
-    parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
-    (options, args) = parser.parse_args()
+    parser = ArgumentParser()
+    args = parser.parse_args()
     tb = affinity_set()
     tb.start()
 



reply via email to

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