message = json.loads(message)
if not 'parameters' in message:
message['parameters'] = {}
When using python 3.4, message is a byte array while json.loads() only accepts str's. Changing the line to message = json.loads(message.decode('utf-8')) works, but I'm not sure that is the best solution.
$ grep -2 loads varlink/client.py message = next(self._next_message())
When using python 3.4, message is a byte array while json.loads() only accepts str's. Changing the line to message = json.loads(message.decode('utf-8')) works, but I'm not sure that is the best solution.