[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()
- [Commit-gnuradio] [gnuradio] branch next updated (493a19e -> 02b6805), git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 01/08: examples: affinity_set use ArgParse,
git <=
- [Commit-gnuradio] [gnuradio] 07/08: Merge branch 'master' into next, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 08/08: Merge remote-tracking branch 'pinkavaj/argparse-01' into next, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 03/08: grc: gnuradio-companion use ArgumentParser, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 06/08: examples: run_synthetic.py use ArgumentParser, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 04/08: grc: flow graph templates use ArgumentParser, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 02/08: examples: plot_flops use ArgumentParser, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 05/08: grcc: replace OptionParser by ArgumentParser, git, 2016/05/11