]> git.ipfire.org Git - oddments/collecty.git/commitdiff
client: Return the graph as a bytes object
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Jun 2015 10:52:05 +0000 (10:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Jun 2015 10:52:05 +0000 (10:52 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/client.py

index 0e870a2b0894881771f587280734fd5b08273a53..39c5fe879cc924fc435ca59ca832b4c527ef93c1 100644 (file)
@@ -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 = {