diff options
| author | Ben Ford <ben@boothead.co.uk> | 2010-10-12 07:50:26 +0100 |
|---|---|---|
| committer | Ben Ford <ben@boothead.co.uk> | 2010-10-12 07:50:26 +0100 |
| commit | e1cfcbb574237e7650c6797c8b01d40e217a4c38 (patch) | |
| tree | 8c784ca61cf4120c4be1b36ac6c015902805a1ff /examples | |
| parent | 69a73a843ed53b21d3df824ab1869c0aa5b76f47 (diff) | |
| download | eventlet-e1cfcbb574237e7650c6797c8b01d40e217a4c38.tar.gz | |
Refactored the green version of zmq to use a factory function for Context
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/distributed_websocket_chat.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/distributed_websocket_chat.py b/examples/distributed_websocket_chat.py index aa2ed85..7ad0483 100644 --- a/examples/distributed_websocket_chat.py +++ b/examples/distributed_websocket_chat.py @@ -24,8 +24,7 @@ from eventlet.hubs import get_hub, use_hub from uuid import uuid1 use_hub('zeromq') -hub = get_hub() -ctx = hub.get_context() +ctx = zmq.Context() class IDName(object): |
