#NEWLINE# @ staticmethod #NEWLINE# def _map_events( events ) : #NEWLINE# #INDENT# 'translate IOLoop.READ/WRITE/ERROR event masks into zmq.POLLIN/OUT/ERR' #NEWLINE# z_events = 0 #NEWLINE# if ( events & IOLoop . READ ) : #NEWLINE# #INDENT# z_events |= POLLIN #NEWLINE# #UNINDENT# if ( events & IOLoop . WRITE ) : #NEWLINE# #INDENT# z_events |= POLLOUT #NEWLINE# #UNINDENT# if ( z_events & IOLoop . ERROR ) : #NEWLINE# #INDENT# z_events |= POLLERR #NEWLINE# #UNINDENT# return z_events