mirror of https://github.com/python/cpython
Remove a dict.has_key() use to silence a warning when running under -3.
This commit is contained in:
parent
926779e758
commit
0d89407a0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue