summaryrefslogtreecommitdiff
path: root/examples/statemachine/documentSignoffDemo.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2019-05-27 20:36:04 -0500
committerPaul McGuire <ptmcg@austin.rr.com>2019-05-27 20:36:04 -0500
commitde5633bc975aad61d28ade5f96bf4af854657a6a (patch)
tree168adf36c42a7b70c98f2bd93d3918d8d653ab9b /examples/statemachine/documentSignoffDemo.py
parentd2332c95675d71c10605eaf00b1171ef11d0970d (diff)
downloadpyparsing-git-de5633bc975aad61d28ade5f96bf4af854657a6a.tar.gz
Fine tuning of statemachine example, moving InvalidStateTransition declaration inside generated class; added video state machine demo; added vending machine state machine demo showing how to using statemachine without importing a .pystate file
Diffstat (limited to 'examples/statemachine/documentSignoffDemo.py')
-rw-r--r--examples/statemachine/documentSignoffDemo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/statemachine/documentSignoffDemo.py b/examples/statemachine/documentSignoffDemo.py
index 0cbfc1f..2ca38c8 100644
--- a/examples/statemachine/documentSignoffDemo.py
+++ b/examples/statemachine/documentSignoffDemo.py
@@ -11,7 +11,7 @@ print('\n'.join(t.__name__ for t in documentsignoffstate.DocumentRevisionState.t
class Document(documentsignoffstate.DocumentRevisionStateMixin):
def __init__(self):
- self.initialize_state(documentsignoffstate.New())
+ self.initialize_state(documentsignoffstate.New)
def run_demo():