1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241833

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);