Error in tcp.py and patch

Hi,

I just tried to use tcp source/ sink in gnuradio 3.7.0git-126-g72776a40
and I get the following errors:

The sink side

File
“/usr/local/gnuradio/lib64/python2.7/site-packages/grc_gnuradio/blks2/tcp.py”,
line 70, in init
self.connect(self, gr.file_descriptor_sink(itemsize, fd))
AttributeError: ‘module’ object has no attribute ‘file_descriptor_sink’

and the source side:

File
“/usr/local/gnuradio/lib64/python2.7/site-packages/grc_gnuradio/blks2/tcp.py”,
line 59, in init
self.connect(gr.file_descriptor_source(itemsize, fd), self)

After applying the attached patch tcp.py works for me

–Volker