Re: [PATCH 10/14] qapi/gen.py: Add __bool__ dunder method to QAPIGen

2020-09-23 Thread Eduardo Habkost
On Tue, Sep 22, 2020 at 05:17:58PM -0400, John Snow wrote: > Falseish when there is no body or preamble; Trueish when there is. > Header and footer are excluded for now, because they are assumed to be > dynamic and always present. > > Signed-off-by: John Snow Reviewed-by: Eduardo Habkost -- E

[PATCH 10/14] qapi/gen.py: Add __bool__ dunder method to QAPIGen

2020-09-22 Thread John Snow
Falseish when there is no body or preamble; Trueish when there is. Header and footer are excluded for now, because they are assumed to be dynamic and always present. Signed-off-by: John Snow --- scripts/qapi/gen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/qapi/gen.py b/scri