[Python-checkins] r65393 - python/trunk/Lib/asyncore.py

brett.cannon python-checkins at python.org
Sat Aug 2 05:32:14 CEST 2008


Author: brett.cannon
Date: Sat Aug  2 05:32:13 2008
New Revision: 65393

Log:
Remove a dict.has_key() use to silence a warning when running under -3.


Modified:
   python/trunk/Lib/asyncore.py

Modified: python/trunk/Lib/asyncore.py
==============================================================================
--- python/trunk/Lib/asyncore.py	(original)
+++ python/trunk/Lib/asyncore.py	Sat Aug  2 05:32:13 2008
@@ -267,7 +267,7 @@
         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


More information about the Python-checkins mailing list