Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/tcf/channel/__init__.py')
-rw-r--r--python/src/tcf/channel/__init__.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/python/src/tcf/channel/__init__.py b/python/src/tcf/channel/__init__.py
index 8fd0031d1..1e89c0bbe 100644
--- a/python/src/tcf/channel/__init__.py
+++ b/python/src/tcf/channel/__init__.py
@@ -26,7 +26,7 @@ class TraceListener(object):
def onChannelClosed(self, error):
pass
-def Proxy(object):
+class Proxy(object):
def onCommand(self, token, service, name, data):
pass
@@ -151,11 +151,11 @@ def toJSONSequence(args):
buf.write('\0')
return buf.getvalue()
-def fromJSONSequence(bytes):
- if bytes[-1] == 0:
- del bytes[-1]
- str = bytes.decode("UTF-8")
- parts = str.split('\0')
+def fromJSONSequence(byteArray):
+ if byteArray[-1] == 0:
+ del byteArray[-1]
+ jsonStr = byteArray.decode("UTF-8")
+ parts = jsonStr.split('\0')
objects = []
for part in parts:
if part:
@@ -164,8 +164,8 @@ def fromJSONSequence(bytes):
objects.append(None)
return objects
-def dumpJSONObject(object, buf):
- json.dump(object, buf, separators=(',', ':'), cls=TCFJSONEncoder)
+def dumpJSONObject(obj, buf):
+ json.dump(obj, buf, separators=(',', ':'), cls=TCFJSONEncoder)
def toByteArray(data):
if data is None: return None

Back to the top