ajax: fix Python3 error in check for ltl3ba

* wrap/python/ajax/spotcgi.in: Here.
This commit is contained in:
Alexandre Duret-Lutz 2015-06-18 11:05:03 +02:00
parent 673eb44d8f
commit 0c3e10d1ec

View file

@ -369,7 +369,7 @@ if output_type == 'v3':
# -M[0|1] is new in 1.1.1, and we use it.
l3proc = subprocess.Popen(['@LTL3BA@', '-h'], stdout=subprocess.PIPE)
(out, err) = l3proc.communicate()
if out.find('-M[') < 0:
if out.find(b'-M[') < 0:
err = 1
else:
err = 0