Skip to content
Snippets Groups Projects
Commit 3ae1c848 authored by John Snow's avatar John Snow Committed by Markus Armbruster
Browse files

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: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarCleber Rosa <crosa@redhat.com>
Reviewed-by: default avatarEduardo Habkost <ehabkost@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20201009161558.107041-27-jsnow@redhat.com>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
[Commit message rewritten]
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent 96670e89
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,7 @@ def __init__(self, prefix, what, user_blurb, builtin_blurb, pydoc):
@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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment