[master] a36dfe0 bytearray needs an encoding in python3
guillaume quintard
gquintard at users.noreply.github.com
Mon Jan 15 12:32:11 UTC 2018
commit a36dfe03a64cdc267a97fda3253238a7cf89b81d
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Wed Jan 10 14:43:29 2018 +0100
bytearray needs an encoding in python3
diff --git a/lib/libvcc/vsctool.py b/lib/libvcc/vsctool.py
index d39f6f7..023f0dd 100644
--- a/lib/libvcc/vsctool.py
+++ b/lib/libvcc/vsctool.py
@@ -112,7 +112,7 @@ class vscset(object):
s=json.dumps(dd, separators=(",",":")) + "\0"
fo.write("\nstatic const unsigned char")
fo.write(" vsc_%s_json[%d] = {\n" % (self.name, len(s)))
- bz = bytearray(s)
+ bz = bytearray(s, encoding="ascii")
t = "\t"
for i in bz:
t += "%d," % i
More information about the varnish-commit
mailing list