qapi/main: handle theoretical None-return from re.match()
commitad1218086efb469d292f5cdd3e8299e5d2e7d8d6
authorJohn Snow <jsnow@redhat.com>
Mon, 1 Feb 2021 19:37:34 +0000 (1 14:37 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 Feb 2021 13:15:58 +0000 (8 14:15 +0100)
tree5394e93603280b11d3966833d287dc5bab79e998
parent3cc01c546ba508222e0ccda775bce30e07c0461f
qapi/main: handle theoretical None-return from re.match()

Mypy cannot understand that this match can never be None, so help it
along.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210201193747.2169670-4-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/main.py