From 42e58f1ca211115e9a76922c36dfbf2b1ad39978 Mon Sep 17 00:00:00 2001 From: Josh Morman <jmorman@gnuradio.org> Date: Wed, 24 Nov 2021 12:02:17 -0500 Subject: audio: pep8 formatting Signed-off-by: Josh Morman <jmorman@gnuradio.org> --- gr-audio/examples/python/mono_tone.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gr-audio/examples/python/mono_tone.py') diff --git a/gr-audio/examples/python/mono_tone.py b/gr-audio/examples/python/mono_tone.py index 411af92924..3feb495c54 100644 --- a/gr-audio/examples/python/mono_tone.py +++ b/gr-audio/examples/python/mono_tone.py @@ -20,9 +20,10 @@ except ImportError: sys.exit(1) #import os -#print os.getpid() +# print os.getpid() #raw_input('Attach gdb and press Enter: ') + class my_top_block(gr.top_block): def __init__(self): @@ -30,11 +31,11 @@ class my_top_block(gr.top_block): parser = ArgumentParser() parser.add_argument("-O", "--audio-output", default="", - help="pcm output device name. E.g., hw:0,0 or /dev/dsp") + help="pcm output device name. E.g., hw:0,0 or /dev/dsp") parser.add_argument("-r", "--sample-rate", type=eng_float, default=48000, - help="set sample rate to RATE %(default)r)") + help="set sample rate to RATE %(default)r)") parser.add_argument("-D", "--dont-block", action="store_false", default=True, - dest="ok_to_block") + dest="ok_to_block") args = parser.parse_args() sample_rate = int(args.sample_rate) @@ -46,7 +47,7 @@ class my_top_block(gr.top_block): args.audio_output, args.ok_to_block) - self.connect (src0, (dst, 0)) + self.connect(src0, (dst, 0)) if __name__ == '__main__': -- cgit v1.2.3