From 60480d02eaeec1783377f20f1999e0978ec53874 Mon Sep 17 00:00:00 2001 From: Daniel Hiepler Date: Tue, 12 Apr 2016 17:01:28 +0200 Subject: [PATCH] always hand bytes() to protobuf --- Spectrum2/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spectrum2/backend.py b/Spectrum2/backend.py index 36f463b..2fb678b 100644 --- a/Spectrum2/backend.py +++ b/Spectrum2/backend.py @@ -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: