diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-04-09 12:28:14 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-04-14 11:19:06 +0300 |
commit | 7b78e37eae3d9a570175ca6c824a3af6c0802b83 (patch) | |
tree | d75c3ee1ebed1f57c4951052fcb0f49bd0f32cb1 /distbuild/jm.py | |
parent | 13dfedfe5c3a6e29c9dc7fd8a2aa4a701c5a5ff5 (diff) | |
download | morph-7b78e37eae3d9a570175ca6c824a3af6c0802b83.tar.gz |
distbuild: Label state machine transition tables
Makes it easier to see what they mean at a glance.
Diffstat (limited to 'distbuild/jm.py')
-rw-r--r-- | distbuild/jm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/distbuild/jm.py b/distbuild/jm.py index bb86adc4..a4e366a7 100644 --- a/distbuild/jm.py +++ b/distbuild/jm.py @@ -56,6 +56,7 @@ class JsonMachine(StateMachine): self.receive_buf = StringBuffer() spec = [ + # state, source, event_class, new_state, callback ('rw', sockbuf, SocketBufferNewData, 'rw', self._parse), ('rw', sockbuf, SocketBufferEof, 'w', self._send_eof), ('rw', self, _Close2, None, self._really_close), |