140 return self.current_state
141
142 def LoadStateMachine(self):
143 """144 This Function load state machine configuration
145 """
146 if self.states is not None:
110 self.saved_state = [self.current_state, self.context]
111
112 def __RestoreState(self):
113 """114 This Function restores the saved state
115 """
116 self.current_state = self.saved_state[0]
104 return all_action_executed
105
106 def __SaveState(self):
107 """108 This Function saves internal state
109 """
110 self.saved_state = [self.current_state, self.context]
If a docstring fits in a single line (72 characters according to PEP8), it is recommended to have the quotes on the same line.
def foo():
"""
Runs bar and returns baz.
"""
baz = bar()
return baz
def foo():
"""Runs bar and returns baz."""
baz = bar()
return baz