qapi/gen: Make _is_user_module() return bool

_is_user_module() returns thruth values.  The next commit wants it to
return bool.  Make it so.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20201009161558.107041-27-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Commit message rewritten]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
John Snow 2020-10-09 12:15:48 -04:00 committed by Markus Armbruster
parent 96670e89ec
commit 3ae1c84851
1 changed files with 1 additions and 1 deletions

View File

@ -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):