diff --git a/wrap/python/ajax/spot.in b/wrap/python/ajax/spot.in index 653f888bb..44eb8f103 100755 --- a/wrap/python/ajax/spot.in +++ b/wrap/python/ajax/spot.in @@ -288,11 +288,11 @@ However you may download the 1 else '', stats.sub_transitions, 's' if stats.sub_transitions > 1 else '')) - if hasattr(automaton, 'acc'): - count = automaton.acc().num_sets() - if count > 0: - unbufprint(", %d acceptance condition" % count) - if count > 1: - unbufprint("s") - unbufprint(": " + - automaton.acc().format(automaton.acc().all_sets())) - else: - unbufprint(", no acceptance condition (all cycles are accepting)") + if hasattr(automaton, 'get_acceptance'): + acc = automaton.get_acceptance() + unbufprint(", acceptance condition: " + str(acc)) + if acc.is_true(): + unbufprint(" (all cycles are accepting)") unbufprint("

\n") # Decide whether we will render the automaton or not. # (A webserver is not a computation center...) @@ -722,7 +719,7 @@ else: if output_type == 'a': if buchi_type == 'i': s = spot.ostringstream() - spot.print_never_claim(s, degen, f) + spot.print_never_claim(s, degen) unbufprint('
%s
' % cgi.escape(s.str())) del s else: # 't' or 's'