def closeall(self):
    'Close all connections (even the one currently in use.)'
    self._lock.acquire()
    try:
        self._closeall()
    finally:
        self._lock.release()
Close all connections (even the one currently in use.)
def closeall(self):
    
    self._lock.acquire()
    try:
        self._closeall()
    finally:
        self._lock.release()