qapi: Make cur_doc local to QAPISchemaParser.__init__()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 2 Oct 2017 14:13:34 +0000 (16:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 20 Dec 2017 18:18:33 +0000 (19:18 +0100)
commit64d6033b203b32f02d0986220af5dc3cd1301ba6
tree62c02d5b0f20a5cc5f38443b5db32e1fdae38495
parent2281d00c3d75e684d9c0051169a6ac1cc60b66cd
qapi: Make cur_doc local to QAPISchemaParser.__init__()

QAPISchemaParser.cur_doc is used only by .__init__() and its helper
.reject_expr_doc().  Make it local to __init__() and pass it to
.reject_expr_doc() explicitly.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20171002141341.24616-5-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
scripts/qapi.py