Commits

guillermooo  committed 5ad4c19

use bytes, not strings

  • Participants
  • Parent commits c792ca0
  • Branches s3

Comments (0)

Files changed (1)

File shglib/client.py

         new_data = b''
         for i, d in enumerate(encoded_data):
             if i != 0:
-                d = '\0' + d
+                d = b'\0' + d
             new_data += d
 
         preamble = struct.pack(">I", len(new_data))