#NEWLINE# def remove_item( self , key , item ) : #NEWLINE# #INDENT# "Remove an item for a given key\n\n        Args:\n            key: The key for a given list\n            item: The item will be removed\n\n        Returns:\n            True indicates that the result is as same as caller thought (dict value is set,\n            and the change will be propagated to other servers if there's any).\n            False if there's an error, or say the original dict changed during caller's operation.\n\n        " #NEWLINE# self . _reload_config_data ( ) #NEWLINE# if ( key not in self . _dict ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( item not in self . _dict_set [ key ] ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# new_dict = copy . deepcopy ( self . _dict ) #NEWLINE# if self . dedup : #NEWLINE# #INDENT# new_dict [ key ] = [ val for val in self . _dict [ key ] if ( val != item ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_dict [ key ] . remove ( item ) #NEWLINE# #UNINDENT# return self . _update_config ( new_dict )