Make xen python scripts work with python3

Approved by:	cperciva
MFC after:	3 days
This commit is contained in:
Eitan Adler 2012-10-22 02:29:53 +00:00
parent 1f35187f99
commit 7a1595e33b

View File

@ -155,7 +155,7 @@
output = re.sub("\\b(%s)_t\\b" % struct, "\\1_%s_t" % arch, output);
# replace: integer types
integers = inttypes[arch].keys();
integers = list(inttypes[arch].keys());
integers.sort(lambda a, b: cmp(len(b),len(a)));
for type in integers:
output = re.sub("\\b%s\\b" % type, inttypes[arch][type], output);