[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 3/3] qapi: Suppress unwanted space between ty
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v3 3/3] qapi: Suppress unwanted space between type and identifier |
Date: |
Mon, 28 Apr 2014 21:00:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Paolo Bonzini <address@hidden> writes:
> Il 28/04/2014 09:02, Amos Kong ha scritto:
>> def mcgen(code, **kwds):
>> - return cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
>> + raw = cgen('\n'.join(code.split('\n')[1:-1]), **kwds)
>> + return re.sub(re.escape(eatspace) + ' +', '', raw)
>
> I'd feel a little more confident with ' *' instead of
> one-or-more. Otherwise
You're right; ensures eatspace is stripped out again.
[...]