def _closeall(self):
    'Close all connections.\n\n        Note that this can lead to some code fail badly when trying to use\n        an already closed connection. If you call .closeall() make sure\n        your code can deal with it.\n        '
    if self.closed:
        raise PoolError('connection pool is closed')
    for conn in (self._pool + list(self._used.values())):
        try:
            conn.close()
        except:
            pass
    self.closed = True
Close all connections.

Note that this can lead to some code fail badly when trying to use
an already closed connection. If you call .closeall() make sure
your code can deal with it.
def _closeall(self):
    'Close all connections.\n\n        Note that this can lead to some code fail badly when trying to use\n        an already closed connection. If you call .closeall() make sure\n        your code can deal with it.\n        '
    if self.closed:
        raise PoolError('connection pool is closed')
    for conn in (self._pool + list(self._used.values())):
        try:
            conn.close()
        except:
            pass
    self.closed = True