Commit 73278d8b authored by Guillaume Quintard's avatar Guillaume Quintard

vmodtool python3 compatibility

parent 8fc0ae67
...@@ -831,7 +831,8 @@ class vcc(object): ...@@ -831,7 +831,8 @@ class vcc(object):
for j in self.contents: for j in self.contents:
j.json(jl) 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)) fo.write("\nstatic const char Vmod_Json[%d] = {\n" % len(bz))
t = "\t" t = "\t"
for i in bz: for i in bz:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment