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

Commit

Permalink
FiniteStateMachine.product_FiniteStateMachine, composition: fix unhas…
Browse files Browse the repository at this point in the history
…hable colors

This fixes the failing doctests introduced in commit
2d43fdd.
  • Loading branch information
cheuberg committed Apr 5, 2014
1 parent 2d43fdd commit 547968a
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 @@ -3663,7 +3663,7 @@ def product_FiniteStateMachine(self, other, function,
state.is_initial = True
if all(map(lambda s: s.is_final, state.label())):
state.is_final = True
state.color = map(lambda s: s.color, state.label())
state.color = tuple(map(lambda s: s.color, state.label()))

if only_accessible_components:
if new_input_alphabet is None:
Expand Down Expand Up @@ -3965,7 +3965,7 @@ def composition_transition(state, input):
for state in F.states():
if all(map(lambda s: s.is_final, state.label())):
state.is_final = True
state.color = map(lambda s: s.color, state.label())
state.color = tuple(map(lambda s: s.color, state.label()))

return F

Expand Down

0 comments on commit 547968a

Please sign in to comment.