From 9e5bf452e3becb8e1c870a42e5bf0c05190aca33 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 17 Dec 2016 12:31:32 -0800 Subject: [PATCH] rename --- src/wormhole/_connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wormhole/_connection.py b/src/wormhole/_connection.py index 6dcee77..5218e4a 100644 --- a/src/wormhole/_connection.py +++ b/src/wormhole/_connection.py @@ -54,9 +54,9 @@ class Dummy(protocol.Protocol): self.factory.cm.onClose(why) # pip install (path to automat checkout)[visualize] -# automat-visualize wormhole.wormhole +# automat-visualize wormhole._connection -class _WebSocketMachine(object): +class WebSocketMachine(object): m = MethodicalMachine() ALLOW_CLOSE = True @@ -172,7 +172,7 @@ class _WebSocketMachine(object): disconnecting.upon(onClose, enter=closed, outputs=[]) def tryit(reactor): - cm = _WebSocketMachine("ws://127.0.0.1:4000/v1", reactor) + cm = WebSocketMachine("ws://127.0.0.1:4000/v1", reactor) print("_ConnectionMachine created") print("start:", cm.start()) print("waiting on _done_d to finish")