From 7a1595e33bab554eb78204eacaa6f1d1f6d1072c Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 22 Oct 2012 02:29:53 +0000 Subject: [PATCH] Make xen python scripts work with python3 Approved by: cperciva MFC after: 3 days --- sys/xen/interface/foreign/mkheader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);