diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:32:13 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:32:13 (GMT) |
commit | 0d89407a0d6cb19648e2444dabddf77631f6525e (patch) | |
tree | b6c0d9722208eea14cee6a1d7877246a7c375e70 /Lib/asyncore.py | |
parent | 926779e75840b99073e47ac08e9ce8b2f520533d (diff) | |
download | cpython-0d89407a0d6cb19648e2444dabddf77631f6525e.zip cpython-0d89407a0d6cb19648e2444dabddf77631f6525e.tar.gz cpython-0d89407a0d6cb19648e2444dabddf77631f6525e.tar.bz2 |
Remove a dict.has_key() use to silence a warning when running under -3.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index e82b5b4..9cd4961 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 |