Do not output empty parse error blocks in the CGI script.
* wrap/python/spot.i: Provide a __nonzero__() method for parse_error_list. * wrap/python/cgi-bin/ltl2tgba.in: Do not call format_parse_errors() unconditionally.
This commit is contained in:
parent
fe535a1594
commit
dc2a89f853
3 changed files with 23 additions and 3 deletions
|
|
@ -280,3 +280,13 @@ unblock_signal(int signum)
|
|||
}
|
||||
|
||||
%}
|
||||
|
||||
%extend spot::ltl::parse_error_list {
|
||||
|
||||
bool
|
||||
__nonzero__()
|
||||
{
|
||||
return !self->empty();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue