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 <swif...@lavabit.com>
> Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
> ---
>  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

Reply via email to