def deactivate(self, address):
with self.lock:<EOL><INDENT>try:<EOL><INDENT>connections = self.connections[address]<EOL><DEDENT>except KeyError: <EOL><INDENT>return<EOL><DEDENT>for conn in list(connections):<EOL><INDENT>if not conn.in_use:<EOL><INDENT>connections.remove(conn)<EOL>try:<EOL><INDENT>conn.close()<EOL><DEDENT>except IOError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>if not connections:<EOL><INDENT>self.remove(address)<EOL><DEDENT><DEDENT>
Deactivate an address from the connection pool, if present, closing
        all idle connection to that address