From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPFCX-0003Qd-CJ for qemu-devel@nongnu.org; Tue, 01 May 2012 11:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPFCV-00048O-BB for qemu-devel@nongnu.org; Tue, 01 May 2012 11:41:16 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:56844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPFCV-00047L-2i for qemu-devel@nongnu.org; Tue, 01 May 2012 11:41:15 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 May 2012 16:41:11 +0100 Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q41Ff70J2465806 for ; Tue, 1 May 2012 16:41:07 +0100 Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q41Ff6cV028104 for ; Tue, 1 May 2012 09:41:07 -0600 From: Stefan Hajnoczi Date: Tue, 1 May 2012 16:40:54 +0100 Message-Id: <1335886859-1028-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v3 0/5] tracetool: Python 2.4 compatibility fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori , Stefan Hajnoczi , Erik Rull , Andreas Faerber , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= The new Python tracetool implementation works great but does not run on older Python installations. This series takes us back to the happy days of Python 2.4, which was released in 2004. As a result tracetool should now work again on Mac OS X v10.5.8, OpenIndiana oi_151a, Solaris 10 U9, and Red Hat Enterprise Linux 5. I added a new patch which should make --list-backends work on Python <2.7 now. Thanks for everyone's help testing on these platforms. v2: * Use nicer version check Python expression [Lluís] * Avoid pkgutil.iter_modules() [Andreas] v3: * Fix missing sys.exit() in configure check [Lluís] Stefan Hajnoczi (5): tracetool: use Python 2.4-compatible exception handling syntax tracetool: use Python 2.4-compatible __import__() arguments tracetool: avoid str.rpartition() Python 2.5 function tracetool: avoid pkgutil.iter_modules() Python 2.7 function configure: check for supported Python 2.x versions configure | 7 ++++--- scripts/tracetool.py | 4 ++-- scripts/tracetool/__init__.py | 19 +++++++++++-------- scripts/tracetool/backend/__init__.py | 8 ++++++-- scripts/tracetool/format/__init__.py | 8 ++++++-- 5 files changed, 29 insertions(+), 17 deletions(-) -- 1.7.10