don't use select.POLL* constants
[openvswitch] / python / ovs / socket_util.py
index dd45fe4b92520561442d990ffdbe55f3ec2d5623..1fc80fd3a1add02446f26e3d5153e3b45fd855e4 100644 (file)
@@ -77,7 +77,7 @@ def make_unix_socket(style, nonblock, bind_path, connect_path):
 
 def check_connection_completion(sock):
     p = ovs.poller.SelectPoll()
-    p.register(sock, select.POLLOUT)
+    p.register(sock, ovs.poller.POLLOUT)
     if len(p.poll(0)) == 1:
         return get_socket_error(sock)
     else: