Remove a dict.has_key() use to silence a warning when running under -3.
authorBrett Cannon <bcannon@gmail.com>
Sat, 2 Aug 2008 03:32:13 +0000 (03:32 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 2 Aug 2008 03:32:13 +0000 (03:32 +0000)
Lib/asyncore.py

index e82b5b4e5cf6d74c392efb0ba25c46135ae74e09..9cd49616136021685d2d6d33321168b7f2b36d17 100644 (file)
@@ -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