John Snow <js...@redhat.com> writes: > It simplifies the typing to say that _section is always a > QAPIDoc.Section(). > > To accommodate this change, we must allow for this object to evaluate to > False for functions like _end_section which behave differently based on > whether or not a Section has been started. > > Signed-off-by: John Snow <js...@redhat.com> > > --- > > Probably a better fix is to restructure the code to prevent > _end_section() from being called twice in a row, but that seemed like > more effort, but if you have suggestions for a tactical fix, I'm open to > it.
First step is to find out how _end_section() can be called twice in a row. It isn't in all of "make check". Hmm.