remotelogin/connections/expect/expect.py
def delete(self, item):
        """ removes an element from the expected value elements

        Args:
            item:

        Returns:

        """
        try:
            item_to_delete = int(item)
            is_dict = False
        except ValueError:
            item_to_delete = self._match_name_to_index[item]
            is_dict = True

        del self.expect_values[item_to_delete]
        if is_dict:
            del self._match_name_to_index[item]
        # update _match_name_to_index
        for k in [k for (k,v) in self._match_name_to_index.items() if v >= item_to_delete]:
            self._match_name_to_index[k] -= 1
 removes an element from the expected value elements

        Args:
            item:

        Returns:

        
removes an element from the expected value elements
removes an element from the expected value elements
def delete(self, item):
        try:
            item_to_delete = int(item)
            is_dict = False
        except ValueError:
            item_to_delete = self._match_name_to_index[item]
            is_dict = True
        del self.expect_values[item_to_delete]
        if is_dict:
            del self._match_name_to_index[item]
        for k in [k for (k,v) in self._match_name_to_index.items() if v >= item_to_delete]:
            self._match_name_to_index[k] -= 1
def delete ( self , item ) : try : item_to_delete = int ( item ) is_dict = False except ValueError : item_to_delete = self . _match_name_to_index [ item ] is_dict = True del self . expect_values [ item_to_delete ] if is_dict : del self . _match_name_to_index [ item ] for k in [ k for ( k , v ) in self . _match_name_to_index . items ( ) if v >= item_to_delete ] : self . _match_name_to_index [ k ] -= 1
removes an element from the expected value elements
removes an element from the expected value elements
""" removes an element from the expected value elements

        Args:
            item:

        Returns:

        """ # update _match_name_to_index
None
self
item
None