def disconnect(self):
        """Disconnect from all databases"""
        for name, connection in self.items():
            if not connection.is_closed():
                connection.close()
def disconnect(self):
        """Disconnect from all databases"""
        for name, connection in self.items():
            if not connection.is_closed():
                connection.close()
def disconnect ( self ) : for name , connection in self . items ( ) : if not connection . is_closed ( ) : connection . close ( )
Disconnect from all databases
Disconnect from all databases