def close(self):
    '\n        Close all sockets.\n        '
    mapping = self._sel.get_map()
    if mapping:
        for entry in list(mapping.values()):
            sock = entry.data[0]
            self.remove(sock)
            sock.close()
    self._sel.close()
Close all sockets.
def close(self):
    '\n        \n        '
    mapping = self._sel.get_map()
    if mapping:
        for entry in list(mapping.values()):
            sock = entry.data[0]
            self.remove(sock)
            sock.close()
    self._sel.close()