From 0d89407a0d6cb19648e2444dabddf77631f6525e Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 2 Aug 2008 03:32:13 +0000 Subject: [PATCH] Remove a dict.has_key() use to silence a warning when running under -3. --- Lib/asyncore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index e82b5b4e5c..9cd4961613 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 -- 2.49.0