From owner-svn-src-stable@FreeBSD.ORG Thu Oct 25 01:27:02 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B9EA1EE; Thu, 25 Oct 2012 01:27:02 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 430CE8FC1A; Thu, 25 Oct 2012 01:27:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9P1R2Za040681; Thu, 25 Oct 2012 01:27:02 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9P1R2Xd040679; Thu, 25 Oct 2012 01:27:02 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201210250127.q9P1R2Xd040679@svn.freebsd.org> From: Eitan Adler Date: Thu, 25 Oct 2012 01:27:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r242028 - stable/9/sys/xen/interface/foreign X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 01:27:02 -0000 Author: eadler Date: Thu Oct 25 01:27:01 2012 New Revision: 242028 URL: http://svn.freebsd.org/changeset/base/242028 Log: MFC r241833: Make xen python scripts work with python3 Approved by: cperciva (implicit) Modified: stable/9/sys/xen/interface/foreign/mkheader.py Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/xen/interface/foreign/mkheader.py ============================================================================== --- stable/9/sys/xen/interface/foreign/mkheader.py Thu Oct 25 01:27:01 2012 (r242027) +++ stable/9/sys/xen/interface/foreign/mkheader.py Thu Oct 25 01:27:01 2012 (r242028) @@ -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);