diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-09-15 21:59:04 (GMT) |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-09-15 21:59:04 (GMT) |
commit | 86909b50b78bbeee2fc99d57b7fca9cdf1bb59ef (patch) | |
tree | 102667a92162c542a01d85f12ee2b5029e78d606 /Lib/asyncore.py | |
parent | 985b68e611e5902bd21ce3159e849b2dcd370afb (diff) | |
download | cpython-86909b50b78bbeee2fc99d57b7fca9cdf1bb59ef.zip cpython-86909b50b78bbeee2fc99d57b7fca9cdf1bb59ef.tar.gz cpython-86909b50b78bbeee2fc99d57b7fca9cdf1bb59ef.tar.bz2 |
rename DISCONNECTED global constant in _DISCONNECTED
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index fbbee29..8745276 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -56,7 +56,7 @@ import os from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, EINVAL, \ ENOTCONN, ESHUTDOWN, EINTR, EISCONN, EBADF, ECONNABORTED, errorcode -DISCONNECTED = frozenset((ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED)) +_DISCONNECTED = frozenset((ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED)) try: socket_map @@ -366,7 +366,7 @@ class dispatcher: except socket.error as why: if why.args[0] == EWOULDBLOCK: return 0 - elif why.args[0] in DISCONNECTED: + elif why.args[0] in _DISCONNECTED: self.handle_close() return 0 else: @@ -384,7 +384,7 @@ class dispatcher: return data except socket.error as why: # winsock sometimes throws ENOTCONN - if why.args[0] in DISCONNECTED: + if why.args[0] in _DISCONNECTED: self.handle_close() return b'' else: |