[Python-checkins] r84841 - python/branches/py3k/Lib/asyncore.py
giampaolo.rodola
python-checkins at python.org
Wed Sep 15 23:59:05 CEST 2010
Author: giampaolo.rodola
Date: Wed Sep 15 23:59:04 2010
New Revision: 84841
Log:
rename DISCONNECTED global constant in _DISCONNECTED
Modified:
python/branches/py3k/Lib/asyncore.py
Modified: python/branches/py3k/Lib/asyncore.py
==============================================================================
--- python/branches/py3k/Lib/asyncore.py (original)
+++ python/branches/py3k/Lib/asyncore.py Wed Sep 15 23:59:04 2010
@@ -56,7 +56,7 @@
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 @@
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 @@
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:
More information about the Python-checkins
mailing list