Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Replaced two raise ..., ... by raise ...(...) in the spirit of #15990
Browse files Browse the repository at this point in the history
before this patch, so two more such issues introduced by this patch have
been modified in order to avoid potential future painful merge conflicts.
  • Loading branch information
cheuberg committed Apr 17, 2014
1 parent a14dd81 commit afc15e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/combinat/finite_state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -6056,7 +6056,7 @@ def process(self, *args, **kwargs):
return (it.accept_input, it.current_state, it.output_tape)
else:
if not it.accept_input:
raise ValueError, "Invalid input sequence."
raise ValueError("Invalid input sequence.")
return it.output_tape


Expand Down Expand Up @@ -6416,7 +6416,7 @@ def get_next_transition(self, word_in):
for transition in self.current_state.transitions:
if transition.word_in == word_in:
return transition
raise ValueError, "No transition with input %s found." % (word_in,)
raise ValueError("No transition with input %s found." % (word_in,))


#*****************************************************************************
Expand Down

0 comments on commit afc15e5

Please sign in to comment.