summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py
diff options
context:
space:
mode:
authorJosh Morman <jmorman@gnuradio.org>2021-11-24 12:53:58 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-11-24 14:41:53 -0500
commit51ec89501552c35b2bd0721c0501302f224fe44d (patch)
tree442036c424c286ece0976dcd3c36891cddefcd25 /gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py
parente426b9ad20dbbf41326c103b31a7418a80362b06 (diff)
runtime: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py b/gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py
index cfc8ce0734..fa15a1e7df 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/RPCConnection.py
@@ -18,8 +18,8 @@ Args:
RPCMethods = {'thrift': 'Apache Thrift',
- #'ice': 'Zeroc ICE'
- }
+ # 'ice': 'Zeroc ICE'
+ }
"""
@@ -62,14 +62,17 @@ Args:
host: hostname of the connection
"""
+
class RPCConnection(object):
def __init__(self, method, port, host=None):
(self.method, self.port) = (method, port)
- if host is None: self.host = '127.0.0.1'
- else: self.host = host
+ if host is None:
+ self.host = '127.0.0.1'
+ else:
+ self.host = host
def __str__(self):
- return "%s connection on %s:%s"%(self.getName(), self.getHost(), self.getPort())
+ return "%s connection on %s:%s" % (self.getName(), self.getHost(), self.getPort())
def getName(self):
return RPCMethods[self.method]
@@ -89,13 +92,13 @@ class RPCConnection(object):
def getKnobs(self, *args):
raise NotImplementedError()
- def getRe(self,*args):
+ def getRe(self, *args):
raise NotImplementedError()
- def postMessage(self,*args):
+ def postMessage(self, *args):
raise NotImplementedError()
- def setKnobs(self,*args):
+ def setKnobs(self, *args):
raise NotImplementedError()
def shutdown(self):