summaryrefslogtreecommitdiff
path: root/distbuild/sockbuf.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/sockbuf.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/sockbuf.py')
-rw-r--r--distbuild/sockbuf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/distbuild/sockbuf.py b/distbuild/sockbuf.py
index 6803bfb5..346706db 100644
--- a/distbuild/sockbuf.py
+++ b/distbuild/sockbuf.py
@@ -89,6 +89,7 @@ class SocketBuffer(StateMachine):
self._wbuf = StringBuffer()
spec = [
+ # state, source, event_class, new_state, callback
('reading', src, SocketReadable, 'reading', self._fill),
('reading', self, _WriteBufferNotEmpty, 'rw',
self._start_writing),