Commit 426ae439 authored by Denis Bilenko's avatar Denis Bilenko

socket: avoid a name lookup

parent 44d58565
......@@ -318,7 +318,7 @@ class socket(object):
client_socket, address = sock.accept()
break
except error, ex:
if ex[0] != errno.EWOULDBLOCK or self.timeout == 0.0:
if ex[0] != EWOULDBLOCK or self.timeout == 0.0:
raise
sys.exc_clear()
wait_read(sock.fileno(), timeout=self.timeout, event=self._read_event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment