Skip to content

Commit

Permalink
title keyword fix for python 2.7 in diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
aleneum committed Jan 29, 2016
1 parent ce2228c commit c5992e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion transitions/extensions/diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def __setstate__(self, state):
self.graph = self.get_graph(title=self.title)
self.set_node_style(self.graph.get_node(self.current_state.name), 'active')

def __init__(self, *args, title='State Machine', **kwargs):
def __init__(self, *args, **kwargs):
# remove title from keywords
title = kwargs.pop('title', 'State Machine')
super(MachineGraphSupport, self).__init__(*args, **kwargs)

# Create graph at beginnning
Expand Down

0 comments on commit c5992e1

Please sign in to comment.