always hand bytes() to protobuf

This commit is contained in:
Daniel Hiepler 2016-04-12 17:01:28 +02:00
parent 47dd2a0bdf
commit 60480d02ea

View file

@ -14,7 +14,7 @@ import resource
def WRAP(MESSAGE, TYPE):
wrap = protocol_pb2.WrapperMessage()
wrap.type = TYPE
wrap.payload = MESSAGE
wrap.payload = bytes(MESSAGE)
return wrap.SerializeToString()
class SpectrumBackend: