summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGiampaolo RodolĂ  <g.rodola@gmail.com>2011-03-03 14:10:58 (GMT)
committerGiampaolo RodolĂ  <g.rodola@gmail.com>2011-03-03 14:10:58 (GMT)
commitde3dc0f66c49d058963f2815a50e1f3dd7a802ab (patch)
tree43f7f2c22acbaae4460f2749b0c87cee5802c949 /Lib/asyncore.py
parentff45fedf61277a23650c79088372e7615599c5e7 (diff)
downloadcpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.zip
cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.gz
cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.bz2
fix attribute error
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index f790c8a..d647606 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -54,7 +54,8 @@ import warnings
import os
from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, EINVAL, \
- ENOTCONN, ESHUTDOWN, EINTR, EISCONN, EBADF, ECONNABORTED, EPIPE, errorcode
+ ENOTCONN, ESHUTDOWN, EINTR, EISCONN, EBADF, ECONNABORTED, EPIPE, EAGAIN, \
+ errorcode
_DISCONNECTED = frozenset((ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED, EPIPE,
EBADF))