[master] 73278d8 vmodtool python3 compatibility
Guillaume Quintard
guillaume at varnish-software.com
Wed Feb 28 14:53:16 UTC 2018
commit 73278d8bbcfeae2a2ffa97fd06c2f8dd1bad8eb0
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Wed Feb 28 15:52:48 2018 +0100
vmodtool python3 compatibility
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index b24d7d2..86fcdad 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -831,7 +831,8 @@ class vcc(object):
for j in self.contents:
j.json(jl)
- bz = bytearray(json.dumps(jl, separators=(",", ":"))) + "\0"
+ bz = bytearray(json.dumps(jl, separators=(",", ":")),
+ encoding = "ascii") + b"\0"
fo.write("\nstatic const char Vmod_Json[%d] = {\n" % len(bz))
t = "\t"
for i in bz:
More information about the varnish-commit
mailing list