summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/zmq/green/eventloop/zmqstream.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/external_libs/zmq/green/eventloop/zmqstream.py')
-rw-r--r--scripts/external_libs/zmq/green/eventloop/zmqstream.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/external_libs/zmq/green/eventloop/zmqstream.py b/scripts/external_libs/zmq/green/eventloop/zmqstream.py
new file mode 100644
index 00000000..90fbd1f5
--- /dev/null
+++ b/scripts/external_libs/zmq/green/eventloop/zmqstream.py
@@ -0,0 +1,11 @@
+from zmq.eventloop.zmqstream import *
+
+from zmq.green.eventloop.ioloop import IOLoop
+
+RealZMQStream = ZMQStream
+
+class ZMQStream(RealZMQStream):
+
+ def __init__(self, socket, io_loop=None):
+ io_loop = io_loop or IOLoop.instance()
+ super(ZMQStream, self).__init__(socket, io_loop=io_loop)