diff --git a/sys/xen/interface/foreign/mkheader.py b/sys/xen/interface/foreign/mkheader.py index 3d75a7a4b663..d833c7e4365b 100644 --- a/sys/xen/interface/foreign/mkheader.py +++ b/sys/xen/interface/foreign/mkheader.py @@ -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);