aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodolà <g.rodola@gmail.com>2011-03-03 14:10:58 +0000
committerGiampaolo Rodolà <g.rodola@gmail.com>2011-03-03 14:10:58 +0000
commitde3dc0f66c49d058963f2815a50e1f3dd7a802ab (patch)
tree43f7f2c22acbaae4460f2749b0c87cee5802c949 /Lib/asyncore.py
parentIssue #11377: Fix quoting on Windows in test_platform (diff)
downloadcpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.gz
cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.bz2
cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.zip
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 f790c8a0183..d6476069be0 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))