diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2011-03-03 14:10:58 (GMT) |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2011-03-03 14:10:58 (GMT) |
commit | de3dc0f66c49d058963f2815a50e1f3dd7a802ab (patch) | |
tree | 43f7f2c22acbaae4460f2749b0c87cee5802c949 /Lib/asyncore.py | |
parent | ff45fedf61277a23650c79088372e7615599c5e7 (diff) | |
download | cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.zip cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.gz cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.bz2 |
fix attribute error
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 3 |
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)) |