summaryrefslogtreecommitdiff
path: root/distbuild/json_router.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-04-09 12:28:14 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-04-14 11:19:06 +0300
commit7b78e37eae3d9a570175ca6c824a3af6c0802b83 (patch)
treed75c3ee1ebed1f57c4951052fcb0f49bd0f32cb1 /distbuild/json_router.py
parent13dfedfe5c3a6e29c9dc7fd8a2aa4a701c5a5ff5 (diff)
downloadmorph-7b78e37eae3d9a570175ca6c824a3af6c0802b83.tar.gz
distbuild: Label state machine transition tables
Makes it easier to see what they mean at a glance.
Diffstat (limited to 'distbuild/json_router.py')
-rw-r--r--distbuild/json_router.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/distbuild/json_router.py b/distbuild/json_router.py
index bf272174..93533b2e 100644
--- a/distbuild/json_router.py
+++ b/distbuild/json_router.py
@@ -52,6 +52,7 @@ class JsonRouter(distbuild.StateMachine):
self.mainloop.add_state_machine(jm)
spec = [
+ # state, source, event_class, new_state, callback
('idle', jm, distbuild.JsonNewMessage, 'idle', self.bloop),
('idle', jm, distbuild.JsonEof, None, self.close),
]