X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-examples%2Fpython%2Fdigital%2Fgen_whitener.py;h=9a81e4eaa35a1fc2496c208c75bedf5e60f3c327;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=93aea2b8217c0c4a8b158cbba143276ef437bcec;hpb=18a684bf3dc144c48fc4cc6cc72f5070febd8074;p=debian%2Fgnuradio diff --git a/gnuradio-examples/python/digital/gen_whitener.py b/gnuradio-examples/python/digital/gen_whitener.py index 93aea2b8..9a81e4ea 100755 --- a/gnuradio-examples/python/digital/gen_whitener.py +++ b/gnuradio-examples/python/digital/gen_whitener.py @@ -5,10 +5,10 @@ from gnuradio.eng_option import eng_option from optparse import OptionParser import sys -class my_graph(gr.flow_graph): +class my_graph(gr.top_block): def __init__(self): - gr.flow_graph.__init__(self) + gr.top_block.__init__(self) parser = OptionParser(option_class=eng_option) (options, args) = parser.parse_args () @@ -23,11 +23,11 @@ class my_graph(gr.flow_graph): if __name__ == '__main__': try: - fg = my_graph() - fg.run() + tb = my_graph() + tb.run() f = sys.stdout i = 0 - for s in fg.dst.data(): + for s in tb.dst.data(): f.write("%3d, " % (s & 0xff,)) f.write("%3d, " % ((s >> 8) & 0xff,)) i = i+2