summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgnuradio-runtime/examples/mp-sched/plot_flops.py4
-rwxr-xr-xgr-utils/python/utils/gr_plot_const4
-rw-r--r--gr-utils/python/utils/gr_read_file_metadata4
3 files changed, 6 insertions, 6 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__':
diff --git a/gr-utils/python/utils/gr_plot_const b/gr-utils/python/utils/gr_plot_const
index 28f6a540da..653a2539b4 100755
--- a/gr-utils/python/utils/gr_plot_const
+++ b/gr-utils/python/utils/gr_plot_const
@@ -230,11 +230,11 @@ def main():
help="Specify where to start in the file [default=%(default)r]")
parser.add_argument("-R", "--sample-rate", type=float, default=1.0,
help="Set the sampler rate of the data [default=%(default)r]")
- parser.add_argument("file", metavar="FILE", nargs=1,
+ parser.add_argument("file", metavar="FILE",
help="Input file with complex samples")
args = parser.parse_args()
- dc = draw_constellation(args.file[0], args)
+ dc = draw_constellation(args.file, args)
if __name__ == "__main__":
try:
diff --git a/gr-utils/python/utils/gr_read_file_metadata b/gr-utils/python/utils/gr_read_file_metadata
index 2a907687d6..a05e7ad2c7 100644
--- a/gr-utils/python/utils/gr_read_file_metadata
+++ b/gr-utils/python/utils/gr_read_file_metadata
@@ -76,8 +76,8 @@ if __name__ == "__main__":
parser = ArgumentParser(conflict_handler="resolve", description=description)
parser.add_argument("-D", "--detached", action="store_true",
help="Used if header is detached.")
- parser.add_argument("file", metavar="FILE", nargs=1,
+ parser.add_argument("file", metavar="FILE",
help="Input file");
args = parser.parse_args()
- main(args.file[0], args.detached)
+ main(args.file, args.detached)