All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charlie Shepherd <charlie@ctshepherd.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Michael Roth <mdroth@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] Remove Python 2.5 syntax from scripts/qapi-visit.py
Date: Thu, 29 Aug 2013 11:58:08 +0100	[thread overview]
Message-ID: <521F2940.4080503@ctshepherd.com> (raw)
In-Reply-To: <CAJSP0QVP81DnXETxiy1DEGXDA2WO0q8+bRZ3fhzGstKgEYEUrQ@mail.gmail.com>

On 29/08/2013 11:14, Stefan Hajnoczi wrote:
> On Thu, Aug 29, 2013 at 12:02 PM, Charlie Shepherd
> <charlie@ctshepherd.com> wrote:
>> On 29/08/2013 10:57, Charlie Shepherd wrote:
>>
>>> default_x86_64_rhel5:
>>>
>>> http://buildbot.b1-systems.de/qemu/builders/default_x86_64_rhel5/builds/684/steps/compile/logs/stdio
>>>>      File
>>>> "/home/buildbot/slave-public/default_x86_64_rhel5/build/scripts/qapi-visit.py",
>>>> line 23
>>>>        full_name = name if not fn_prefix else "%s_%s" % (name, fn_prefix)
>>>>                          ^
>>>> SyntaxError: invalid syntax
>>>> make: *** [qapi-visit.h] Error 1
>>> This syntax was introduced in Python 2.5, patch to follow to convert
>>> this to valid Python 2.4 syntax.
>>
>> The syntax `var = a if b else c` was added in Python 2.5, but QEMU has a
>>
>> minimum Python version of 2.4, which chokes on this syntax. This patch
>>
>> converts the new syntax to Python 2.4 compatible syntax.
>>
>> ---
> Missing Signed-off-by: line.
>
> Also it looks like the email is double-spaced.  Copy-paste or email
> client issue?

Thunderbird strikes again. I'll send a respin with git send-email.

>> -    full_name = name if not field_prefix else "%s_%s" % (field_prefix,
>> name)
>>
>> +    if not fn_prefix:
>>
>> +        full_name = name
>>
>> +    else:
>>
>> +        full_name = "%s_%s" % (name, fn_prefix)
> Careful, (field_prefix, name) were swapped to (name, fn_prefix).

Good catch.


Charlie

  reply	other threads:[~2013-08-29 10:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29  9:57 [Qemu-devel] Buildbot Failures Charlie Shepherd
2013-08-29 10:02 ` [Qemu-devel] [PATCH] Remove Python 2.5 syntax from scripts/qapi-visit.py Charlie Shepherd
2013-08-29 10:14   ` Stefan Hajnoczi
2013-08-29 10:58     ` Charlie Shepherd [this message]
2013-08-29 11:03     ` [Qemu-devel] [PATCH v2] " Charlie Shepherd
2013-08-29 11:20       ` Stefan Hajnoczi
2013-08-29 10:19 ` [Qemu-devel] Buildbot Failures Anthony PERARD
2013-08-29 10:23   ` Stefan Hajnoczi
2013-08-29 10:57     ` Charlie Shepherd
2013-08-29 10:52 ` Stefan Hajnoczi
2013-08-29 13:55 ` Alex Bligh
2013-09-12 23:55 ` Brad Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=521F2940.4080503@ctshepherd.com \
    --to=charlie@ctshepherd.com \
    --cc=aliguori@us.ibm.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.