tools/ocaml: make python scripts 2 and 3 compatible
authorWei Liu <wei.liu2@citrix.com>
Mon, 1 Apr 2019 10:32:38 +0000 (11:32 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 2 Apr 2019 08:50:58 +0000 (09:50 +0100)
commita57a1b26ec0ae31f924cf2bbcf479637d007be44
treefba77ac0585f466dd346278f04a33b7232a4a566
parentff915c8cacc264ae1380d51fea07267b8308d7ba
tools/ocaml: make python scripts 2 and 3 compatible

1. Explicitly import reduce because that's required in 3.
2. Change print to function.
3. Eliminate invocations of has_key.

Signed-off-by: M A Young <m.a.young@durham.ac.uk>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/libs/xentoollog/genlevels.py
tools/ocaml/libs/xl/genwrap.py