diff options
author | Josh Morman <jmorman@gnuradio.org> | 2021-11-24 12:36:04 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-24 14:41:53 -0500 |
commit | 0ec71943a5a1f4dd22841e57e5f503795e86b931 (patch) | |
tree | dc6211c5f9efe011a9f111f3e71963c235a58b41 /gr-network/python/network/tcp_source.py | |
parent | 9924b3ab58ca6d0b55aaf79af3879a32e0b873cf (diff) |
network: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-network/python/network/tcp_source.py')
-rw-r--r-- | gr-network/python/network/tcp_source.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-network/python/network/tcp_source.py b/gr-network/python/network/tcp_source.py index 4e07a68497..89efa74ce2 100644 --- a/gr-network/python/network/tcp_source.py +++ b/gr-network/python/network/tcp_source.py @@ -23,6 +23,7 @@ import socket import os from gnuradio import gr, blocks + def _get_sock_fd(addr, port, server): """ Get the file descriptor for the socket. @@ -74,9 +75,10 @@ def _get_sock_fd(addr, port, server): sock.connect((addr, port)) return os.dup(sock.fileno()) + class tcp_source(gr.hier_block2): def __init__(self, itemsize, addr, port, server=True): - #init hier block + # init hier block gr.hier_block2.__init__( self, 'tcp_source', gr.io_signature(0, 0, 0), |