def event_loop(self):
        """Event loop."""
        try:
            zmq.eventloop.ioloop.IOLoop.current().start()
        except KeyboardInterrupt:
            zmq.eventloop.ioloop.IOLoop.current().stop()
def event_loop ( self ) : try : zmq . eventloop . ioloop . IOLoop . current ( ) . start ( ) except KeyboardInterrupt : zmq . eventloop . ioloop . IOLoop . current ( ) . stop ( )
Event loop.