summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/xen/interface/foreign/mkheader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xen/interface/foreign/mkheader.py b/sys/xen/interface/foreign/mkheader.py
index 3d75a7a..d833c7e 100644
--- a/sys/xen/interface/foreign/mkheader.py
+++ b/sys/xen/interface/foreign/mkheader.py
@@ -155,7 +155,7 @@ for struct in structs:
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);
OpenPOWER on IntegriCloud