Re: [PATCH v3 31/47] qapi/gen.py: Fix edge-case of _is_user_module

2020-09-28 Thread Cleber Rosa
On Thu, Sep 24, 2020 at 08:28:44PM -0400, John Snow wrote: > The edge case is that if the name is '', this expression returns a > string instead of a bool, which violates our declared type. > > Signed-off-by: John Snow Reviewed-by: Cleber Rosa signature.asc Description: PGP signature

[PATCH v3 31/47] qapi/gen.py: Fix edge-case of _is_user_module

2020-09-24 Thread John Snow
The edge case is that if the name is '', this expression returns a string instead of a bool, which violates our declared type. Signed-off-by: John Snow --- scripts/qapi/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qapi/gen.py b/scripts/qapi/gen.py index