Re: [PATCH 2/5] qapi: Drop Indentation.__bool__()

2021-09-13 Thread Eric Blake
On Wed, Sep 08, 2021 at 06:54:25AM +0200, Markus Armbruster wrote: > Intentation.__bool__() is not worth its keep: it has just one user, Indentation > which can just as well check .__str__() instead. > > Signed-off-by: Markus Armbruster > --- > scripts/qapi/common.py | 9 +++-- > 1 file ch

[PATCH 2/5] qapi: Drop Indentation.__bool__()

2021-09-07 Thread Markus Armbruster
Intentation.__bool__() is not worth its keep: it has just one user, which can just as well check .__str__() instead. Signed-off-by: Markus Armbruster --- scripts/qapi/common.py | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/qapi/common.py b/scripts/qapi/comm