From: Giampaolo RodolĂ  Date: Thu, 3 Mar 2011 14:10:58 +0000 (+0000) Subject: fix attribute error X-Git-Tag: v3.3.0a1~3002 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de3dc0f66c49d058963f2815a50e1f3dd7a802ab;p=python fix attribute error --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index f790c8a018..d6476069be 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))