projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
926779e
)
Remove a dict.has_key() use to silence a warning when running under -3.
author
Brett Cannon
<bcannon@gmail.com>
Sat, 2 Aug 2008 03:32:13 +0000
(
03:32
+0000)
committer
Brett Cannon
<bcannon@gmail.com>
Sat, 2 Aug 2008 03:32:13 +0000
(
03:32
+0000)
Lib/asyncore.py
patch
|
blob
|
history
diff --git
a/Lib/asyncore.py
b/Lib/asyncore.py
index e82b5b4e5cf6d74c392efb0ba25c46135ae74e09..9cd49616136021685d2d6d33321168b7f2b36d17 100644
(file)
--- 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