remotelogin/devices/managers/connections.py
def _delete_open_connection_instance(self, name, instance):
        """ delete open connection instance and if there are no more open instances for a connection it removes
            the reference key from the open_instances dictionary
        """
        if name not in self.open_instances:
            log.debug(name + " connection was tried to be closed but is not present " + str(self.open_instances))
            return
        with self._get_connection_instance_lock(name, instance):
            if instance in self.open_instances[name]:
                del self.open_instances[name][instance]
            if not self.open_instances[name]:
                del self.open_instances[name]
 delete open connection instance and if there are no more open instances for a connection it removes
            the reference key from the open_instances dictionary
        
delete open connection instance and if there are no more open instances for a connection it removes
the reference key from the open_instances dictionary
delete open connection instance and if there are no more open instances for a connection it removes the reference key from the open_instances dictionary
def _delete_open_connection_instance(self, name, instance):
        if name not in self.open_instances:
            log.debug(name + " connection was tried to be closed but is not present " + str(self.open_instances))
            return
        with self._get_connection_instance_lock(name, instance):
            if instance in self.open_instances[name]:
                del self.open_instances[name][instance]
            if not self.open_instances[name]:
                del self.open_instances[name]
def _delete_open_connection_instance ( self , name , instance ) : if name not in self . open_instances : log . debug ( name + " connection was tried to be closed but is not present " + str ( self . open_instances ) ) return with self . _get_connection_instance_lock ( name , instance ) : if instance in self . open_instances [ name ] : del self . open_instances [ name ] [ instance ] if not self . open_instances [ name ] : del self . open_instances [ name ]
delete open connection instance and if there are no more open instances for a connection it removes
the reference key from the open_instances dictionary
delete open connection instance and if there are no more open instances for a connection it removes the reference key from the open_instances dictionary
""" delete open connection instance and if there are no more open instances for a connection it removes
            the reference key from the open_instances dictionary
        """
self
name
instance