diff options
author | Giampaolo Rodolà <g.rodola@gmail.com> | 2011-03-03 14:10:58 +0000 |
---|---|---|
committer | Giampaolo Rodolà <g.rodola@gmail.com> | 2011-03-03 14:10:58 +0000 |
commit | de3dc0f66c49d058963f2815a50e1f3dd7a802ab (patch) | |
tree | 43f7f2c22acbaae4460f2749b0c87cee5802c949 /Lib/asyncore.py | |
parent | Issue #11377: Fix quoting on Windows in test_platform (diff) | |
download | cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.gz cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.tar.bz2 cpython-de3dc0f66c49d058963f2815a50e1f3dd7a802ab.zip |
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 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)) |