Use get_errno

This commit is contained in:
Ephemera 2013-03-11 15:26:42 +09:00 committed by Ask Solem
parent 009deb8898
commit f6ff4df21b
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class Connection(object):
self.more_to_read = False
return False
except socket.error, exc:
if exc.errno in (errno.EAGAIN, errno.EINTR):
if get_errno(exc) in (errno.EAGAIN, errno.EINTR):
self.more_to_read = False
return False
raise