[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] configure: Insist on a Python 2, not Python 3
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-trivial] [PATCH] configure: Insist on a Python 2, not Python 3 |
Date: |
Fri, 13 Apr 2012 10:01:18 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Apr 12, 2012 at 07:09:52PM +0100, Peter Maydell wrote:
> Our Python scripts require Python 2 and will fail on Python 3, eg:
> File
> "/home/petmay01/linaro/qemu-from-laptop/qemu/scripts/qapi-commands.py", line
> 378
> except getopt.GetoptError, err:
> ^
> SyntaxError: invalid syntax
>
> Add a check to configure that Python is not a Python 3, so we can
> fail with a comprehensible error rather than an obscure one.
>
> Reported-by: Boris Matti <address@hidden>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> configure | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan