From: Michael Tremer Date: Sat, 6 Jun 2015 10:52:05 +0000 (+0000) Subject: client: Return the graph as a bytes object X-Git-Tag: 003~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695624fcc6d34b4d373cdfeef43562aab8598d5a;p=telemetry.git client: Return the graph as a bytes object Signed-off-by: Michael Tremer --- diff --git a/src/collecty/client.py b/src/collecty/client.py index 0e870a2..39c5fe8 100644 --- a/src/collecty/client.py +++ b/src/collecty/client.py @@ -52,7 +52,7 @@ class CollectyClient(object): # Convert the byte array into a byte string again if byte_array: - return "".join((chr(b) for b in byte_array)) + return bytes(byte_array) def generate_graph_cli(self, ns): kwargs = {