summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/examples/mp-sched/plot_flops.py
diff options
context:
space:
mode:
authorJiří Pinkava <j-pi@seznam.cz>2016-09-17 15:43:26 +0200
committerJiří Pinkava <j-pi@seznam.cz>2016-09-17 15:43:26 +0200
commit00aec59017d99db6ca5216e4ca2bb44786c0ed91 (patch)
tree56009025a216cb3165343ca23f484166dc315d9b /gnuradio-runtime/examples/mp-sched/plot_flops.py
parent54ede29960f9022a8040e10c0d58fa8fed989a3f (diff)
cleanup: remove nargs=1 from ArgumentParser
Diffstat (limited to 'gnuradio-runtime/examples/mp-sched/plot_flops.py')
-rwxr-xr-xgnuradio-runtime/examples/mp-sched/plot_flops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/examples/mp-sched/plot_flops.py b/gnuradio-runtime/examples/mp-sched/plot_flops.py
index c80820b8a3..9bd2ff12bb 100755
--- a/gnuradio-runtime/examples/mp-sched/plot_flops.py
+++ b/gnuradio-runtime/examples/mp-sched/plot_flops.py
@@ -85,10 +85,10 @@ def handle_file(input_filename):
def main():
parser = ArgumentParser()
- parser.add_argument('file', help='Input file', nargs=1)
+ parser.add_argument('file', help='Input file')
args = parser.parse_args()
- handle_file(args.file[0])
+ handle_file(args.file)
if __name__ == '__main__':