From: John Snow <js...@redhat.com> _is_user_module() returns thruth values. The next commit wants it to return bool. Make it so.
Signed-off-by: John Snow <js...@redhat.com> Reviewed-by: Cleber Rosa <cr...@redhat.com> Reviewed-by: Eduardo Habkost <ehabk...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com> Message-Id: <20201009161558.107041-27-js...@redhat.com> Reviewed-by: Markus Armbruster <arm...@redhat.com> [Commit message rewritten] Signed-off-by: Markus Armbruster <arm...@redhat.com> --- 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 fff0c0acb6..2c305c4f82 100644 --- a/scripts/qapi/gen.py +++ b/scripts/qapi/gen.py @@ -241,7 +241,7 @@ class QAPISchemaModularCVisitor(QAPISchemaVisitor): @staticmethod def _is_user_module(name): - return name and not name.startswith('./') + return bool(name and not name.startswith('./')) @staticmethod def _is_builtin_module(name): -- 2.26.2