From: Brett Cannon Date: Sat, 2 Aug 2008 03:32:13 +0000 (+0000) Subject: Remove a dict.has_key() use to silence a warning when running under -3. X-Git-Tag: v2.6b3~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d89407a0d6cb19648e2444dabddf77631f6525e;p=thirdparty%2FPython%2Fcpython.git Remove a dict.has_key() use to silence a warning when running under -3. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index e82b5b4e5cf6..9cd496161360 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