summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index e82b5b4..9cd4961 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -267,7 +267,7 @@ class dispatcher:
fd = self._fileno
if map is None:
map = self._map
- if map.has_key(fd):
+ if fd in map:
#self.log_info('closing channel %d:%s' % (fd, self))
del map[fd]
self._fileno = None