[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 4/4] qapi: Brush off some (py)lint
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 4/4] qapi: Brush off some (py)lint |
Date: |
Thu, 05 Mar 2020 06:56:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
John Snow <address@hidden> writes:
> On 3/4/20 10:59 AM, Markus Armbruster wrote:
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
>> scripts/qapi/commands.py | 2 +-
>> scripts/qapi/expr.py | 3 +--
>> scripts/qapi/gen.py | 9 ++++++---
>> scripts/qapi/introspect.py | 2 --
>> scripts/qapi/parser.py | 6 ++----
>> scripts/qapi/schema.py | 11 +++++------
>> 6 files changed, 15 insertions(+), 18 deletions(-)
>>
>
> Looks okay. (I don't care as much about no-else-return being there or
> not, and this module is your baby.)
I admit I personally prefer to elide the else there. But my main
argument is consistent style. Picking the one pylint wants makes
consistency easier.
> Reviewed-by: John Snow <address@hidden>
Thanks!