Commit 0d89407a authored by Brett Cannon's avatar Brett Cannon

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

parent 926779e7
...@@ -267,7 +267,7 @@ class dispatcher: ...@@ -267,7 +267,7 @@ class dispatcher:
fd = self._fileno fd = self._fileno
if map is None: if map is None:
map = self._map map = self._map
if map.has_key(fd): if fd in map:
#self.log_info('closing channel %d:%s' % (fd, self)) #self.log_info('closing channel %d:%s' % (fd, self))
del map[fd] del map[fd]
self._fileno = None self._fileno = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment